thor-ssh 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,4 +1,5 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
+ gem 'sahara', :git => 'https://github.com/ryanstout/sahara.git'
3
4
  # Specify your gem's dependencies in thor-ssh.gemspec
4
5
  gemspec
data/README.md CHANGED
@@ -24,14 +24,19 @@ This is still a work in progress. The main issue is that calling #inside or any
24
24
  TODO: Get #inside working
25
25
  TODO: Add other features needed for provisioning system
26
26
  TODO: Make way to copy remote to remote
27
+ TODO: Make local #run and #exec work
27
28
 
28
29
  ## Running Tests
29
30
  The test run through vagrant, which seemed logical since we want to test ssh stuff.
30
31
 
31
32
  ### Install a box (first time only)
32
33
  cd spec/vagrant
33
- vagrant box add ubuntu11 http://timhuegdon.com/vagrant-boxes/ubuntu-11.10.box
34
- vagrant init ubuntu11
34
+ bundle exec vagrant box add ubuntu11 http://timhuegdon.com/vagrant-boxes/ubuntu-11.10.box
35
+ bundle exec vagrant init ubuntu11
36
+
37
+ # enable the sandbox and create a commit we can rollback to
38
+ bundle exec vagrant sandbox on
39
+ bundle exec vagrant sandbox commit
35
40
 
36
41
  ### Start box
37
42
  vagrant up
@@ -1,3 +1,3 @@
1
1
  module ThorSsh
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
data/spec/spec_helper.rb CHANGED
@@ -1,5 +1,9 @@
1
1
  require 'rspec'
2
2
 
3
3
  RSpec.configure do |config|
4
-
4
+ config.after(:suite) do
5
+ # Rollback the server
6
+ puts "Roll back test server"
7
+ `cd spec/vagrant/ ; BUNDLE_GEMFILE=../../Gemfile bundle exec vagrant sandbox rollback`
8
+ end
5
9
  end
data/thor-ssh.gemspec CHANGED
@@ -18,6 +18,7 @@ Gem::Specification.new do |gem|
18
18
  gem.add_runtime_dependency 'net-sftp'#, '= 2.0.5'
19
19
  gem.add_development_dependency 'rspec', '~> 2.10'
20
20
  gem.add_development_dependency 'vagrant', '= 1.0.3'
21
+ gem.add_development_dependency 'sahara'
21
22
  gem.add_development_dependency 'rake', '~> 0.9'
22
23
  gem.add_development_dependency 'rdoc', '~> 3.9'
23
24
  gem.rdoc_options = ['--charset=UTF-8']
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thor-ssh
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-23 00:00:00.000000000 Z
12
+ date: 2012-05-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor
@@ -91,6 +91,22 @@ dependencies:
91
91
  - - '='
92
92
  - !ruby/object:Gem::Version
93
93
  version: 1.0.3
94
+ - !ruby/object:Gem::Dependency
95
+ name: sahara
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ! '>='
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
102
+ type: :development
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
94
110
  - !ruby/object:Gem::Dependency
95
111
  name: rake
96
112
  requirement: !ruby/object:Gem::Requirement
@@ -171,7 +187,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
171
187
  version: '0'
172
188
  segments:
173
189
  - 0
174
- hash: -4561132812708336947
190
+ hash: -2234182083947585544
175
191
  required_rubygems_version: !ruby/object:Gem::Requirement
176
192
  none: false
177
193
  requirements:
@@ -180,7 +196,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
180
196
  version: '0'
181
197
  segments:
182
198
  - 0
183
- hash: -4561132812708336947
199
+ hash: -2234182083947585544
184
200
  requirements: []
185
201
  rubyforge_project:
186
202
  rubygems_version: 1.8.22