Class Index [+]

Quicksearch

Thor::Actions::ClassMethods

Public Instance Methods

add_runtime_options!() click to toggle source

Add runtime options that help actions execution.

    # File lib/bundler/vendor/thor/actions.rb, line 48
48:       def add_runtime_options!
49:         class_option :force, :type => :boolean, :aliases => "-f", :group => :runtime,
50:                              :desc => "Overwrite files that already exist"
51: 
52:         class_option :pretend, :type => :boolean, :aliases => "-p", :group => :runtime,
53:                                :desc => "Run but do not make any changes"
54: 
55:         class_option :quiet, :type => :boolean, :aliases => "-q", :group => :runtime,
56:                              :desc => "Supress status output"
57: 
58:         class_option :skip, :type => :boolean, :aliases => "-s", :group => :runtime,
59:                             :desc => "Skip files that already exist"
60:       end
source_paths() click to toggle source

Hold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.

    # File lib/bundler/vendor/thor/actions.rb, line 22
22:       def source_paths
23:         @_source_paths ||= []
24:       end
source_paths_for_search() click to toggle source

Returns the source paths in the following order:

  1) This class source paths
  2) Source root
  3) Parents source paths
    # File lib/bundler/vendor/thor/actions.rb, line 38
38:       def source_paths_for_search
39:         paths = []
40:         paths += self.source_paths
41:         paths << self.source_root if self.source_root
42:         paths += from_superclass(:source_paths, [])
43:         paths
44:       end
source_root(path=nil) click to toggle source

Stores and return the source root for this class

    # File lib/bundler/vendor/thor/actions.rb, line 27
27:       def source_root(path=nil)
28:         @_source_root = path if path
29:         @_source_root
30:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.