Add runtime options that help actions execution.
# File lib/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
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/thor/actions.rb, line 22
22: def source_paths
23: @_source_paths ||= []
24: end
Returns the source paths in the following order:
1) This class source paths 2) Source root 3) Parents source paths
# File lib/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
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.