Class: Ing::Commands::Implicit

Inherits:
Object
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

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(options)
  self.options = options
end

Instance Attribute Details

#optionsObject

Returns the value of attribute options.



22
23
24
# File 'lib/ing/commands/implicit.rb', line 22

def options
  @options
end

Class Method Details

.specify_options(parser) ⇒ Object



14
15
16
17
# File 'lib/ing/commands/implicit.rb', line 14

def self.specify_options(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