cide 0.0.4 → 0.0.5
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.
- checksums.yaml +4 -4
- data/.rubocop.yml +4 -0
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +1 -1
- data/README.md +0 -5
- data/cide.gemspec +1 -1
- data/lib/cide.rb +7 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 18da16129a84f961ea93066787140bdf7c89defc
|
4
|
+
data.tar.gz: 8df1aaded524d1a2df47628b982cdda2f5d28041
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cfa7429e67824465b72ba271a135d68449e2296dd21d3f1ec7af45007d9fb62438774f9ea23a7007382cfa2af30ef499daf2fdbd0f438897f7b972941ab26f17
|
7
|
+
data.tar.gz: 970631b86f66bb4ca3afa07428a260bee93b3ae42788cd4f9bd5f29c75d5af29347c303520e7953e9f3b4f052c7932a92aa0a94c4ece1c08eae0f0a4166a0820
|
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -62,8 +62,3 @@ TODO
|
|
62
62
|
* linked container
|
63
63
|
* schema validation
|
64
64
|
* use the /cache volume
|
65
|
-
* multi-container runs
|
66
|
-
* `cide setup` to configure inside of a project
|
67
|
-
* `cide gc` to cleanup old cide builds
|
68
|
-
* travis.yml compatiblity with docker containers that map to languages
|
69
|
-
* add ways of exporting artifacts
|
data/cide.gemspec
CHANGED
data/lib/cide.rb
CHANGED
@@ -83,16 +83,16 @@ module CIDE
|
|
83
83
|
aliases: ['o'],
|
84
84
|
default: nil
|
85
85
|
|
86
|
-
method_option 'run',
|
87
|
-
desc: 'The script to run',
|
88
|
-
aliases: ['r'],
|
89
|
-
default: DefaultConfig.run
|
90
|
-
|
91
86
|
method_option 'export',
|
92
87
|
desc: 'Are we expecting to export artifacts',
|
93
88
|
type: :boolean,
|
94
89
|
default: false
|
95
90
|
|
91
|
+
method_option 'run',
|
92
|
+
desc: 'The script to run',
|
93
|
+
aliases: ['r'],
|
94
|
+
default: DefaultConfig.run
|
95
|
+
|
96
96
|
def build
|
97
97
|
setup_docker
|
98
98
|
|
@@ -102,6 +102,7 @@ module CIDE
|
|
102
102
|
|
103
103
|
say_status :config, config.to_h
|
104
104
|
|
105
|
+
# FIXME: Move Dockerfile out of the way if it exists
|
105
106
|
if !File.exist?(DOCKERFILE)
|
106
107
|
say_status :Dockerfile, 'Creating temporary Dockerfile'
|
107
108
|
File.write(DOCKERFILE, config.to_dockerfile)
|
@@ -216,7 +217,7 @@ module CIDE
|
|
216
217
|
def docker(*args)
|
217
218
|
opts = args.last.is_a?(Hash) ? args.pop : {}
|
218
219
|
ret = run Shellwords.join(['docker'] + args), opts
|
219
|
-
fail 'Command failed' if
|
220
|
+
fail 'Command failed' if $?.exitstatus > 0
|
220
221
|
ret
|
221
222
|
end
|
222
223
|
end
|