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 +5 -0
- data/lib/conjure/service/docker_host.rb +4 -1
- data/lib/conjure/service/rails_server.rb +3 -2
- data/lib/conjure/version.rb +1 -1
- metadata +2 -2
data/History.md
CHANGED
@@ -218,7 +218,10 @@ module Conjure
|
|
218
218
|
end
|
219
219
|
|
220
220
|
def destroy_all_stopped
|
221
|
-
host.command
|
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/
|
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/
|
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
|
data/lib/conjure/version.rb
CHANGED
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.
|
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-
|
12
|
+
date: 2013-11-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: fog
|