Class: NeetoDeploy::CLI::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/neeto_deploy/cli/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeBase

Returns a new instance of Base.



17
18
19
# File 'lib/neeto_deploy/cli/base.rb', line 17

def initialize
  @ui = CLI::UI.new
end

Instance Attribute Details

#uiObject (readonly)

Returns the value of attribute ui.



15
16
17
# File 'lib/neeto_deploy/cli/base.rb', line 15

def ui
  @ui
end

Instance Method Details

#create_config_dirObject



21
22
23
# File 'lib/neeto_deploy/cli/base.rb', line 21

def create_config_dir
  FileUtils.mkdir_p(File.expand_path(CLI_CONFIG_DIR))
end