Module: ConvoxInstaller

Defined in:
lib/convox_installer.rb,
lib/convox_installer/config.rb,
lib/convox_installer/version.rb,
lib/convox_installer/requirements.rb

Defined Under Namespace

Classes: Config, Requirements

Constant Summary collapse

VERSION =
'3.2.1'

Instance Method Summary collapse

Instance Method Details

#clientObject



10
11
12
# File 'lib/convox_installer.rb', line 10

def client
  @client ||= Convox::Client.new(log_level: @log_level, config: config.config)
end

#configObject



14
15
16
17
18
# File 'lib/convox_installer.rb', line 14

def config
  options = { log_level: @log_level }
  options[:prompts] = @prompts if @prompts
  @config ||= Config.new(options)
end

#ensure_requirements!Object



24
25
26
# File 'lib/convox_installer.rb', line 24

def ensure_requirements!
  requirements.ensure_requirements!
end

#prompt_for_configObject



28
29
30
# File 'lib/convox_installer.rb', line 28

def prompt_for_config
  config.prompt_for_config
end

#requirementsObject



20
21
22
# File 'lib/convox_installer.rb', line 20

def requirements
  @requirements ||= Requirements.new(log_level: @log_level)
end