remy 0.0.8 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16,6 +16,7 @@ module Remy
16
16
 
17
17
  def run
18
18
  copy_ssh_key_to_remote
19
+ add_ssh_key_locally_if_necessary
19
20
  update_linux_distribution
20
21
  install_rvm
21
22
  install_gems_to_bootstrap_chef
@@ -28,6 +29,13 @@ module Remy
28
29
  remote_apt_get 'build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion'
29
30
  end
30
31
 
32
+ def add_ssh_key_locally_if_necessary
33
+ private_ssh_key = public_ssh_key.chomp(File.extname(public_ssh_key))
34
+ unless `ssh-add -l`.match(/#{File.basename(private_ssh_key)}/)
35
+ `ssh-add $HOME/.ssh/#{private_ssh_key}`
36
+ end
37
+ end
38
+
31
39
  def install_gems_to_bootstrap_chef
32
40
  remote_gem 'bundler', :version => gems[:bundler]
33
41
  remote_gem 'chef', :version => gems[:chef]
data/lib/remy/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Remy
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: remy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: