Skip to content

Instantly share code, notes, and snippets.

@intinig
Created April 17, 2013 10:20
Show Gist options
  • Select an option

  • Save intinig/5403254 to your computer and use it in GitHub Desktop.

Select an option

Save intinig/5403254 to your computer and use it in GitHub Desktop.
github_creds = Chef::EncryptedDataBagItem.load("passwords", "github")
github_command_string = "github-key-upload -k /var/apps/.ssh/id_dsa.pub -u #{github_creds["user"]} -P #{github_creds["password"]} -t #{Chef::Config[:node_name]}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment