diff options
-rw-r--r-- | Manifest | 1 | ||||
-rw-r--r-- | Rudyfile | 110 | ||||
-rw-r--r-- | net-ssh.gemspec | 3 |
3 files changed, 113 insertions, 1 deletions
@@ -2,6 +2,7 @@ CHANGELOG.rdoc Manifest README.rdoc Rakefile +Rudyfile THANKS.rdoc lib/net/ssh.rb lib/net/ssh/authentication/agent.rb diff --git a/Rudyfile b/Rudyfile new file mode 100644 index 0000000..2028574 --- /dev/null +++ b/Rudyfile @@ -0,0 +1,110 @@ +# Rudyfile +# +# This configuration is used to test installing +# and running net-ssh on a clean machine. +# +# Usage: +# +# $ rudy -vv startup +# $ rudy -vv testsuite +# $ rudy -vv shutdown +# +# Requires: Rudy 0.9 (http://code.google.com/p/rudy/) +# + +defaults do + color true + environment :test + role :netssh +end + +machines do + region :'us-east-1' do + ami 'ami-e348af8a' # Alestic Debian 5.0, 32-bit (US) + end + env :test do + role :netssh do + user :root + end + end +end + +commands do + allow :apt_get, "apt-get", :y, :q + allow :gem_install, "/usr/bin/gem", "install", :n, '/usr/bin', :y, :V, "--no-rdoc", "--no-ri" + allow :gem_sources, "/usr/bin/gem", "sources" + allow :gem_uninstall, "/usr/bin/gem", "uninstall", :V + allow :update_rubygems + allow :rm +end + +routines do + + testsuite do + before :sysupdate, :installdeps, :install_gem + + remote :root do + directory_upload 'test', '/tmp/' + cd '/tmp' + ruby :I, 'lib/', :I, 'test/', :r, 'rubygems', 'test/test_all.rb' + end + + after :install_rubyforge, :install_github + end + + install_rubyforge do + remote :root do + gem_install 'net-ssh', '--version', '2.0.7' + gem_install 'net-ssh' + end + end + + install_github do + remote :root do + gem_sources :a, "http://gems.github.com" + gem_install 'net-ssh-net-ssh' + end + end + + install_gem do + before :package_gem + remote :root do + disable_safe_mode + file_upload "pkg/net-ssh-*.gem", "/tmp/" + gem_install "/tmp/net-ssh-*.gem" + end + end + + package_gem do + local do + rm :r, :f, 'pkg' + rake 'package' + end + end + + remove do + remote :root do + gem_uninstall 'net-ssh' + end + end + + installdeps do + remote :root do + gem_install "rye", "test-unit", "mocha" + rye 'authorize-local' + end + end + + sysupdate do + remote :root do + apt_get "update" + apt_get "install", "build-essential", "git-core" + apt_get "install", "ruby1.8-dev", "rdoc", "libzlib-ruby", "rubygems" + mkdir :p, "/var/lib/gems/1.8/bin" # Doesn't get created, but causes Rubygems to fail + gem_install "builder", "session" + gem_install 'rubygems-update', "-v=1.3.4" # circular issue with 1.3.5 and hoe + update_rubygems + end + end +end + diff --git a/net-ssh.gemspec b/net-ssh.gemspec index 864418c..0d5c976 100644 --- a/net-ssh.gemspec +++ b/net-ssh.gemspec @@ -12,7 +12,7 @@ s.has_rdoc = true s.rdoc_options = ["--line-numbers", "--title", s.summary, "--main", "README.rdoc"] s.require_paths = %w[lib] - s.rubygems_version = '1.1.1' + s.rubygems_version = '1.3.2' s.executables = %w[] @@ -22,6 +22,7 @@ Manifest README.rdoc Rakefile + Rudyfile THANKS.rdoc lib/net/ssh.rb lib/net/ssh/authentication/agent.rb |