conjure 0.1.5 → 0.1.6

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.
data/History.md CHANGED
@@ -1,3 +1,8 @@
1
+ ### Version 0.1.6
2
+ 2013-11-27
3
+
4
+ * Support Docker 0.7
5
+
1
6
  ### Version 0.1.5
2
7
  2013-11-22
3
8
 
@@ -218,7 +218,10 @@ module Conjure
218
218
  end
219
219
 
220
220
  def destroy_all_stopped
221
- host.command "rm `#{host.docker_path} ps -a -q`"
221
+ all_ids = host.command("ps -a -q").split("\n").map(&:strip)
222
+ running_ids = host.command("ps -q").split("\n").map(&:strip)
223
+ stopped_ids = all_ids - running_ids
224
+ host.command "rm #{stopped_ids.join ' '}"
222
225
  end
223
226
 
224
227
  def destroy_all(options)
@@ -15,6 +15,7 @@ module Conjure
15
15
  "curl -L https://get.rvm.io | bash -s stable",
16
16
  "rvm install #{ruby_version}",
17
17
  "bash -c 'source /usr/local/rvm/scripts/rvm; rvm use #{ruby_version}@global --default'",
18
+ "ln -s /usr/local/rvm/rubies/*/lib/ruby/gems/* /usr/local/rvm/gems/default",
18
19
  "apt-get install -y #{apt_packages_required_for_gems.join ' '}",
19
20
  "echo 'deb http://us.archive.ubuntu.com/ubuntu/ precise universe' >>/etc/apt/sources.list",
20
21
  "apt-get install -y python-software-properties software-properties-common",
@@ -24,7 +25,7 @@ module Conjure
24
25
 
25
26
  ],
26
27
  environment: {
27
- PATH:"/usr/local/rvm/gems/ruby-1.9.3-p448@global/bin:/usr/local/rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
28
+ PATH:"/usr/local/rvm/gems/default/bin:/usr/local/rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
28
29
  RAILS_ENV: @rails_environment,
29
30
  GITHUB_TOKEN: ENV["GITHUB_TOKEN"],
30
31
  FRECKLE_SUBDOMAIN: "neomind",
@@ -38,7 +39,7 @@ module Conjure
38
39
  label: "rails_server",
39
40
  ports: [80],
40
41
  environment: {
41
- PATH:"/usr/local/rvm/gems/ruby-1.9.3-p448@global/bin:/usr/local/rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
42
+ PATH:"/usr/local/rvm/gems/default/bin:/usr/local/rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
42
43
  },
43
44
  )
44
45
  end
@@ -1,3 +1,3 @@
1
1
  module Conjure
2
- VERSION = "0.1.5" unless defined?(VERSION)
2
+ VERSION = "0.1.6" unless defined?(VERSION)
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: conjure
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
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: 2013-11-22 00:00:00.000000000 Z
12
+ date: 2013-11-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fog