blimpy 0.6.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
data/lib/blimpy/box.rb CHANGED
@@ -87,6 +87,11 @@ module Blimpy
87
87
  bootstrap_livery
88
88
  end
89
89
 
90
+ # This is just here to make things more consistent from an API perspective
91
+ def provision
92
+ bootstrap
93
+ end
94
+
90
95
  def stop
91
96
  unless @server.nil?
92
97
  @server.stop
@@ -203,10 +208,10 @@ module Blimpy
203
208
  '-l', username, dns, *args)
204
209
  end
205
210
 
206
- def scp_file(filename, directory='')
211
+ def scp_file(filename, directory='', *args)
207
212
  filename = File.expand_path(filename)
208
213
  run_command('scp', '-o', 'StrictHostKeyChecking=no',
209
- filename, "#{username}@#{dns}:#{directory}", *ARGV[3..-1])
214
+ filename, "#{username}@#{dns}:#{directory}", *args)
210
215
  end
211
216
 
212
217
  def bootstrap_livery
data/lib/blimpy/cli.rb CHANGED
@@ -155,7 +155,8 @@ end
155
155
  exit 1
156
156
  end
157
157
  box.wait_for_sshd
158
- box.scp_file(filename)
158
+ # Pass any extra commands along to the `scp` invocation
159
+ box.scp_file(filename, '', *ARGV[3..-1])
159
160
  end
160
161
 
161
162
  desc 'provision BLIMP_NAME', 'Run the livery again'
@@ -18,6 +18,11 @@ module Blimpy
18
18
 
19
19
  def rsync_command
20
20
  excludes = rsync_excludes.map { |x| "--exclude=#{x}" }
21
+
22
+ if File.exists? '.blimpignore'
23
+ excludes << '--exclude-from=.blimpignore'
24
+ end
25
+
21
26
  ['rsync',
22
27
  '-avL',
23
28
  '-e',
@@ -1,3 +1,3 @@
1
1
  module Blimpy
2
- VERSION = "0.6.1"
2
+ VERSION = "0.6.2"
3
3
  end
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.6.1
4
+ version: 0.6.2
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-08-27 00:00:00.000000000Z
12
+ date: 2012-09-03 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fog
16
- requirement: &9243200 !ruby/object:Gem::Requirement
16
+ requirement: &21221380 !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: *9243200
24
+ version_requirements: *21221380
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: thor
27
- requirement: &9242160 !ruby/object:Gem::Requirement
27
+ requirement: &21220960 !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: *9242160
35
+ version_requirements: *21220960
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: minitar
38
- requirement: &9241220 !ruby/object:Gem::Requirement
38
+ requirement: &21220520 !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: *9241220
46
+ version_requirements: *21220520
47
47
  description: Blimpy is a tool for managing a fleet of machines in the CLOUD!
48
48
  email:
49
49
  - tyler@monkeypox.org
@@ -117,7 +117,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
117
117
  version: '0'
118
118
  segments:
119
119
  - 0
120
- hash: -1409111270662760311
120
+ hash: -1797117388119190917
121
121
  required_rubygems_version: !ruby/object:Gem::Requirement
122
122
  none: false
123
123
  requirements:
@@ -126,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
126
126
  version: '0'
127
127
  segments:
128
128
  - 0
129
- hash: -1409111270662760311
129
+ hash: -1797117388119190917
130
130
  requirements: []
131
131
  rubyforge_project:
132
132
  rubygems_version: 1.8.10