Class: Ing::Commands::Implicit
- Inherits:
-
Object
- Object
- Ing::Commands::Implicit
- Includes:
- Boot, Ing::CommonOptions
- Defined in:
- lib/ing/commands/implicit.rb
Overview
This is the default boot command when ARGV.first not recognized as a built-in Ing command. For example, ‘ing some:task run` .
Constant Summary collapse
- DEFAULTS =
{ namespace: 'object', ing_file: 'ing.rb' }
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
Class Method Summary collapse
Instance Method Summary collapse
-
#before(*args) ⇒ Object
Require each passed file or library before running and require the ing file if it exists.
-
#initialize(options) ⇒ Implicit
constructor
A new instance of Implicit.
Methods included from Ing::CommonOptions
#debug, #debug?, included, #ing_file, #namespace, #require_ing_file, #require_libs, #requires
Methods included from Boot
#after, #call, #configure_command
Constructor Details
#initialize(options) ⇒ Implicit
Returns a new instance of Implicit.
23 24 25 |
# File 'lib/ing/commands/implicit.rb', line 23 def initialize() self. = end |
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
22 23 24 |
# File 'lib/ing/commands/implicit.rb', line 22 def @options end |
Class Method Details
.specify_options(parser) ⇒ Object
14 15 16 17 |
# File 'lib/ing/commands/implicit.rb', line 14 def self.(parser) parser.text "(internal)" parser.stop_on_unknown end |
Instance Method Details
#before(*args) ⇒ Object
Require each passed file or library before running and require the ing file if it exists
29 30 31 32 |
# File 'lib/ing/commands/implicit.rb', line 29 def before(*args) require_libs require_ing_file end |