Module: EYCli

Included in:
Command::Console
Defined in:
lib/ey_cli.rb,
lib/ey_cli/api.rb,
lib/ey_cli/cli.rb,
lib/ey_cli/term.rb,
lib/ey_cli/git_utils.rb,
lib/ey_cli/models/app.rb,
lib/ey_cli/models/base.rb,
lib/ey_cli/commands/apps.rb,
lib/ey_cli/commands/base.rb,
lib/ey_cli/commands/help.rb,
lib/ey_cli/commands/show.rb,
lib/ey_cli/smarty_parser.rb,
lib/ey_cli/models/account.rb,
lib/ey_cli/options_parser.rb,
lib/ey_cli/command_manager.rb,
lib/ey_cli/commands/deploy.rb,
lib/ey_cli/commands/console.rb,
lib/ey_cli/controllers/apps.rb,
lib/ey_cli/commands/accounts.rb,
lib/ey_cli/models/deployment.rb,
lib/ey_cli/models/environment.rb,
lib/ey_cli/commands/create_app.rb,
lib/ey_cli/commands/create_env.rb,
lib/ey_cli/controllers/accounts.rb,
lib/ey_cli/controllers/environments.rb

Defined Under Namespace

Modules: Command, Controller, GitUtils, Model, SmartyParser Classes: Api, CLI, CommandManager, OptionsParser, Term

Constant Summary collapse

VERSION =
'0.3.1'

Class Method Summary collapse

Class Method Details

.api(endpoint = nil) ⇒ Object



36
37
38
# File 'lib/ey_cli.rb', line 36

def self.api(endpoint = nil)
  @api ||= Api.new(endpoint)
end

.command_managerObject



44
45
46
# File 'lib/ey_cli.rb', line 44

def self.command_manager
  @command_manager ||= EYCli::CommandManager.new
end

.term(input = $stdin, output = $stdout) ⇒ Object



40
41
42
# File 'lib/ey_cli.rb', line 40

def self.term(input = $stdin, output = $stdout)
  @ui ||= Term.new(input, output)
end