assemblyline-cli 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/assemblyline/cli/version.rb +1 -1
- data/lib/assemblyline/cli.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YTM4M2E4ZmIyYWZlYTQ4YWNhMDBiNjkzMTgxYTE2MzI2NWQ0MDk2Nw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NmNmMWYyMTMyMThmMjJjMGZjMWI0YzJiMjk1ZjgzZGFlMTI3YjRhZA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
Y2FmNDhhM2MxYWVhZDBjMmJjNjUyODU0OGU0YTMwODg3YjE1MDBjNzQ3OTE1
|
10
|
+
NGVlNTQwOWU1ZTcxYWQwMjkyNWRkMzNjYWVlNjU4MDI0ZjlmMDZjODQzNDc1
|
11
|
+
MmYwNWQ3ZjAyNTM4NjkyZDVhMjY2NTU5NmI2NDYzYTMwYTk1YjU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MjdkNzA2MGMzYjBjODk1ZGEyMGQ2NjcyMjU4OTQ0NTk4MWQ1OWQ5ZmFiNzRk
|
14
|
+
YWE0YTE0MjExOTk5MWQ5MTZmYmJlODA2Y2I2ZjEyYTJkYTYxMTU4MDllZWVm
|
15
|
+
ODg5YjAwOTNiYTQ2NGJlNzYzYjRiZTJmODY2NjEwMDA0NjVjM2M=
|
data/lib/assemblyline/cli.rb
CHANGED
@@ -3,9 +3,9 @@ require 'thor'
|
|
3
3
|
|
4
4
|
module Assemblyline
|
5
5
|
class CLI < Thor
|
6
|
-
desc "build URL", "Build an assemblyline project from a git url"
|
7
|
-
def build(url)
|
8
|
-
exec "docker run --rm -v /tmp:/tmp -v /var/run/docker.sock:/var/run/docker.sock -e SSH_KEY=#{ssh_key} -e DOCKERCFG=#{dockercfg} quay.io/assemblyline/builder:latest bin/build #{url}"
|
6
|
+
desc "build URL (REF)", "Build an assemblyline project from a git url and optionaly merge REF into master"
|
7
|
+
def build(url, ref=nil)
|
8
|
+
exec "docker run --rm -v /tmp:/tmp -v /var/run/docker.sock:/var/run/docker.sock -e SSH_KEY=#{ssh_key} -e DOCKERCFG=#{dockercfg} quay.io/assemblyline/builder:latest bin/build #{url} #{ref}"
|
9
9
|
end
|
10
10
|
|
11
11
|
private
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: assemblyline-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ed Robinson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|