module Alphonse::Configs::Setting
Public Instance Methods
app_name(value)
click to toggle source
# File lib/alphonse/configs/setting.rb, line 14 def app_name(value) set_attr :app_name => value end
branch(value)
click to toggle source
# File lib/alphonse/configs/setting.rb, line 30 def branch(value) set_attr :branch => value end
env_path(value)
click to toggle source
# File lib/alphonse/configs/setting.rb, line 34 def env_path(value) set_attr :env_path => value end
git_repo(value)
click to toggle source
# File lib/alphonse/configs/setting.rb, line 26 def git_repo(value) set_attr :git_repo => value end
hosts(*value)
click to toggle source
# File lib/alphonse/configs/setting.rb, line 18 def hosts(*value) set_attr :hosts => [*value].flatten end
path(value)
click to toggle source
# File lib/alphonse/configs/setting.rb, line 22 def path(value) set_attr :path => (value[-1] == '/' ? value : "#{value}/") end
restart_command(value)
click to toggle source
# File lib/alphonse/configs/setting.rb, line 46 def restart_command(value) set_attr :restart_command => value end
ruby_bin_path(value)
click to toggle source
# File lib/alphonse/configs/setting.rb, line 38 def ruby_bin_path(value) set_attr :ruby_bin_path => value end
start_command(value)
click to toggle source
# File lib/alphonse/configs/setting.rb, line 42 def start_command(value) set_attr :start_command => value end
user(value)
click to toggle source
TODO: evaluate attributes to allow attribute reuse E.g.
user = "user_name" path = "/full/path/to/#{user}" => "/full/path/to/user_name"
# File lib/alphonse/configs/setting.rb, line 10 def user(value) set_attr :user => value end