Class: Rockette::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/rockette/cli.rb

Overview

Handle actions and parameters

Constant Summary collapse

Error =

Error raised by this runner

Class.new(StandardError)

Instance Method Summary collapse

Instance Method Details

#configObject



60
61
62
63
64
65
66
67
# File 'lib/rockette/cli.rb', line 60

def config(*)
  if options[:help]
    invoke :help, ["config"]
  else
    require_relative "commands/config"
    Rockette::Commands::Config.new(options).execute
  end
end

#deployObject



29
30
31
32
33
34
35
36
# File 'lib/rockette/cli.rb', line 29

def deploy(*)
  if options[:help]
    invoke :help, ["deploy"]
  else
    require_relative "commands/deploy"
    Rockette::Commands::Deploy.new(options).execute
  end
end

#exportObject



48
49
50
51
52
53
54
55
# File 'lib/rockette/cli.rb', line 48

def export(*)
  if options[:help]
    invoke :help, ["export"]
  else
    require_relative "commands/export"
    Rockette::Commands::Export.new(options).execute
  end
end

#interactiveObject



72
73
74
75
76
77
78
79
# File 'lib/rockette/cli.rb', line 72

def interactive(*)
  if options[:help]
    invoke :help, ["interactive"]
  else
    require_relative "commands/interactive"
    Rockette::Commands::Interactive.new(options).execute
  end
end

#versionObject



12
13
14
15
# File 'lib/rockette/cli.rb', line 12

def version
  require_relative "version"
  puts "v#{Rockette::VERSION}"
end