blimpy 0.3.5 → 0.3.6
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +6 -4
- data/features/cli/scp.feature +2 -1
- data/lib/blimpy/box.rb +4 -2
- data/lib/blimpy/version.rb +1 -1
- metadata +14 -8
data/README.md
CHANGED
@@ -49,10 +49,12 @@ Here's an example Blimpfile:
|
|
49
49
|
Blimpy.fleet do |fleet|
|
50
50
|
fleet.add(:aws) do |ship|
|
51
51
|
ship.name = 'rails-app'
|
52
|
-
ship.
|
53
|
-
ship.
|
54
|
-
ship.
|
55
|
-
ship.
|
52
|
+
ship.ports = [22, 80, 8080] # [Optional] Create a security group with these ports open
|
53
|
+
ship.image_id = 'ami-349b495d' # [Optional] defaults to Ubuntu 10.04 64-bit
|
54
|
+
ship.livery = 'rails' # [Optional]
|
55
|
+
ship.group = 'Simple' # [Optional] The name of the desired Security Group
|
56
|
+
ship.region = 'us-west-1' # [Optional] defaults to us-west-2
|
57
|
+
ship.username = 'ubuntu' # [Optional] SSH username, defaults to "ubuntu" for AWS machines
|
56
58
|
end
|
57
59
|
end
|
58
60
|
```
|
data/features/cli/scp.feature
CHANGED
@@ -22,7 +22,7 @@ Feature: SCP a file into a named VM
|
|
22
22
|
|
23
23
|
# This test is in the same boat that the complimentary test in ssh.feature is
|
24
24
|
# in.
|
25
|
-
@slow @destroy
|
25
|
+
@slow @destroy
|
26
26
|
Scenario: SCPing a valid file
|
27
27
|
Given I have the Blimpfile:
|
28
28
|
"""
|
@@ -33,5 +33,6 @@ Feature: SCP a file into a named VM
|
|
33
33
|
end
|
34
34
|
"""
|
35
35
|
And I have a file named "hello.txt"
|
36
|
+
And I run `blimpy start`
|
36
37
|
When I run `blimpy scp "Cucumber Host" hello.txt`
|
37
38
|
Then the exit status should be 0
|
data/lib/blimpy/box.rb
CHANGED
@@ -152,7 +152,9 @@ module Blimpy
|
|
152
152
|
def ssh_into(*args)
|
153
153
|
# Support using #ssh_into within our own code as well to pass arguments
|
154
154
|
# to the ssh(1) binary
|
155
|
-
|
155
|
+
if args.empty?
|
156
|
+
args = ARGV[2 .. -1]
|
157
|
+
end
|
156
158
|
run_command('ssh', '-o', 'StrictHostKeyChecking=no',
|
157
159
|
'-l', username, dns_name, *args)
|
158
160
|
end
|
@@ -166,7 +168,7 @@ module Blimpy
|
|
166
168
|
def bootstrap_livery
|
167
169
|
if livery == :cwd
|
168
170
|
dir_name = File.basename(Dir.pwd)
|
169
|
-
run_command('rsync', '-
|
171
|
+
run_command('rsync', '-avL',
|
170
172
|
'--exclude=.git',
|
171
173
|
'--exclude=.svn',
|
172
174
|
'--exclude=.blimpy.d',
|
data/lib/blimpy/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blimpy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-06-18 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: fog
|
16
|
-
requirement: &
|
16
|
+
requirement: &14091140 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *14091140
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: thor
|
27
|
-
requirement: &
|
27
|
+
requirement: &14090460 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *14090460
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: minitar
|
38
|
-
requirement: &
|
38
|
+
requirement: &14089460 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *14089460
|
47
47
|
description: Blimpy is a tool for managing a fleet of machines in the CLOUD!
|
48
48
|
email:
|
49
49
|
- tyler@monkeypox.org
|
@@ -104,12 +104,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
104
104
|
- - ! '>='
|
105
105
|
- !ruby/object:Gem::Version
|
106
106
|
version: '0'
|
107
|
+
segments:
|
108
|
+
- 0
|
109
|
+
hash: -3393293475964109853
|
107
110
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
108
111
|
none: false
|
109
112
|
requirements:
|
110
113
|
- - ! '>='
|
111
114
|
- !ruby/object:Gem::Version
|
112
115
|
version: '0'
|
116
|
+
segments:
|
117
|
+
- 0
|
118
|
+
hash: -3393293475964109853
|
113
119
|
requirements: []
|
114
120
|
rubyforge_project:
|
115
121
|
rubygems_version: 1.8.10
|