Class: Strobe::CLI::Main

Inherits:
Strobe::CLI show all
Includes:
Preview
Defined in:
lib/strobe/cli/main.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Preview

#wrap

Methods inherited from Strobe::CLI

__haxlias, action, application_path_option, handle_argument_error, #initialize, start

Constructor Details

This class inherits a constructor from Strobe::CLI

Class Method Details

.help(shell, subcommand = false) ⇒ Object


11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/strobe/cli/main.rb', line 11

def self.help(shell, subcommand = false)
  shell.say <<LONGDESC
strobe-cli (v#{Strobe::VERSION}) - cli tool for the Strobe Platform

Deploy and manage your applications on the Strobe Platform.

To get started, just run `strobe deploy` in your application directory.

LONGDESC

  super shell, subcommand
end

Instance Method Details

#help(*args) ⇒ Object


24
25
26
27
28
29
30
31
32
# File 'lib/strobe/cli/main.rb', line 24

def help(*args)
  if args.first == "users"
    CLI::Users.start( [ "help" ] + args[1..-1] )
  elsif args.first == "deploys"
    CLI::Deploys.start( [ "help" ] + args[1..-1] )
  else
    super
  end
end

#versionObject


35
36
37
# File 'lib/strobe/cli/main.rb', line 35

def version
  puts "Strobe version #{VERSION}"
end