Class: Elzar::Cli::Init

Inherits:
Runner
  • Object
show all
Defined in:
lib/elzar/cli.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Runner

#require_arguments!, required_argument, required_arguments, run

Constructor Details

#initialize(options = {}) ⇒ Init

Returns a new instance of Init.



59
60
61
# File 'lib/elzar/cli.rb', line 59

def initialize(options = {})
  @dna = options[:dna]
end

Instance Attribute Details

#authorized_keysObject (readonly)

Returns the value of attribute authorized_keys.



57
58
59
# File 'lib/elzar/cli.rb', line 57

def authorized_keys
  @authorized_keys
end

#dnaObject (readonly)

Returns the value of attribute dna.



57
58
59
# File 'lib/elzar/cli.rb', line 57

def dna
  @dna
end

Instance Method Details

#runObject



63
64
65
66
67
68
69
# File 'lib/elzar/cli.rb', line 63

def run
  Elzar.create_provision_directory 'provision', provisioning_options
  notify <<-MSG
    Created provision/ directory.
    !!! You must go edit provision/dna.json to meet your app's needs !!!
  MSG
end