class Vpsb::Resources::DeployBagsJson
Public Instance Methods
call(data)
click to toggle source
# File lib/vpsb/resources/deploy_bags_json.rb, line 6 def call(data) template(data) end
Private Instance Methods
template(data)
click to toggle source
# File lib/vpsb/resources/deploy_bags_json.rb, line 12 def template(data) { id: "deploy", username: "deploy", ssh_keys: data.get(:deploy_ssh_keys), password: data.get(:deploy_pass), groups: %w{www-data deploy}, uid: 1001, shell: "/bin/bash", home: "/home/deploy", comment: "deployment user", manage_home: true, keychain: { id_dsa: "", "id_dsa.pub" => ""}, to_known_hosts: [], www_dir: "/opt/www", env_variables_for_rvm: true, global_env_variables:{ APPS_DIR:"/opt/www", RAILS_ENV: "production" } } end