Class: DependencyWiring::ThorApp

Inherits:
Thor
  • Object
show all
Defined in:
lib/dependency_wiring/thor_app.rb

Constant Summary collapse

DEFAULT_CONF =
"deps.dw"

Instance Method Summary collapse

Instance Method Details

#show(file = DEFAULT_CONF) ⇒ Object



14
15
16
# File 'lib/dependency_wiring/thor_app.rb', line 14

def show(file=DEFAULT_CONF)
  load_config(file).show
end

#versionObject



9
10
11
# File 'lib/dependency_wiring/thor_app.rb', line 9

def version
  puts "dw tool ver. #{DependencyWiring::VERSION}"
end

#wire(file = DEFAULT_CONF) ⇒ Object



19
20
21
# File 'lib/dependency_wiring/thor_app.rb', line 19

def wire(file=DEFAULT_CONF)
  load_config(file).wire_all
end