Class: Oak

Inherits:
Thor
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/oak.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#secret_tokenObject (readonly)

Returns the value of attribute secret_token.



5
6
7
# File 'lib/oak.rb', line 5

def secret_token
  @secret_token
end

Instance Method Details

#setup(working_directory = '.') ⇒ Object



8
9
10
11
12
13
14
15
16
17
# File 'lib/oak.rb', line 8

def setup(working_directory = '.')
  self.destination_root = working_directory
  FileUtils.chdir destination_root do
    check_cfg
    dummy_config 
    git_prepare
    create_config_on_deploy
    commit_deploy_branch
  end
end