Class: Vader

Inherits:
Object
  • Object
show all
Defined in:
lib/vader.rb,
lib/vader/version.rb

Defined Under Namespace

Classes: DockerUtil, Exec, Setup, Sync, Up

Constant Summary collapse

COMMANDS =
{
  'exec'  => -> { Vader::Exec },
  'init'  => -> { Vader::Init }, #TODO
  'setup' => -> { Vader::Setup },
  'sync'  => -> { Vader::Sync },
  'up'    => -> { Vader::Up }
}
VERSION =
'0.0.2'

Instance Method Summary collapse

Instance Method Details

#runObject



24
25
26
27
28
29
30
31
32
33
34
# File 'lib/vader.rb', line 24

def run
  check_version

  command = ARGV.shift

  if COMMANDS.key?(command)
    COMMANDS[command].call.new.run
  else
    # TODO: Print help
  end
end