Class Index [+]

Quicksearch

Capistrano::CLI::Options

Attributes

options[R]

The hash of (parsed) command-line options

Public Class Methods

included(base) click to toggle source
   # File lib/capistrano/cli/options.rb, line 6
6:       def self.included(base)
7:         base.extend(ClassMethods)
8:       end

Public Instance Methods

coerce_variable(value) click to toggle source
     # File lib/capistrano/cli/options.rb, line 229
229:       def coerce_variable(value)
230:         case value
231:         when /^"(.*)"$/ then $1
232:         when /^'(.*)'$/ then $1
233:         when /^\d+$/ then value.to_i
234:         when /^\d+\.\d*$/ then value.to_f
235:         when "true" then true
236:         when "false" then false
237:         when "nil" then nil
238:         else value
239:         end
240:       end
coerce_variable_types!() click to toggle source
     # File lib/capistrano/cli/options.rb, line 221
221:       def coerce_variable_types!
222:         [:pre_vars, :vars].each do |collection|
223:           options[collection].keys.each do |key|
224:             options[collection][key] = coerce_variable(options[collection][key])
225:           end
226:         end
227:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.