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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NTk1MDhkYTA0YWY1ZTBhYjg4YzUzZDgyYjczOTQ3NGZkOTZmZWViYw==
4
+ YTM4M2E4ZmIyYWZlYTQ4YWNhMDBiNjkzMTgxYTE2MzI2NWQ0MDk2Nw==
5
5
  data.tar.gz: !binary |-
6
- ZjI3MGUxNzcxNzc5ZGRjMmY5OWI3NTRhZWQ1MGJlNGQ4YjFjNWZhYQ==
6
+ NmNmMWYyMTMyMThmMjJjMGZjMWI0YzJiMjk1ZjgzZGFlMTI3YjRhZA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MzZkZDM0ZmRmZjI5NTExMzZmN2QyNjQyODBlMGI4MmRlZTEwNTk2YjFkMDY5
10
- MTM3ZWU1NmNlZjkzM2ZmODc4NzkyZWM2YmRjZmFiNWI0Yjc4YWFjMGY4NzY2
11
- ODhmM2ZjYTFmN2JhZTUxYzcwZDBlYTYxZjU3N2U0N2ZmZTI3MTY=
9
+ Y2FmNDhhM2MxYWVhZDBjMmJjNjUyODU0OGU0YTMwODg3YjE1MDBjNzQ3OTE1
10
+ NGVlNTQwOWU1ZTcxYWQwMjkyNWRkMzNjYWVlNjU4MDI0ZjlmMDZjODQzNDc1
11
+ MmYwNWQ3ZjAyNTM4NjkyZDVhMjY2NTU5NmI2NDYzYTMwYTk1YjU=
12
12
  data.tar.gz: !binary |-
13
- MTc5YWIyYzZmNjA1ZjkyZmI1NjIwNGIzZDQ5MzczYTNhMjllN2VkZGRmN2Yy
14
- NzZkYjRiY2Y2MTg2MGZjODExMTE3ZDU1NmZmMGM1M2ZkNWZiNWQxYWI4MzAy
15
- YzMyYjVkYTliNDg2NGI4MWMzYWZlYmM0MTJjZjg1NGJmNzI2MDg=
13
+ MjdkNzA2MGMzYjBjODk1ZGEyMGQ2NjcyMjU4OTQ0NTk4MWQ1OWQ5ZmFiNzRk
14
+ YWE0YTE0MjExOTk5MWQ5MTZmYmJlODA2Y2I2ZjEyYTJkYTYxMTU4MDllZWVm
15
+ ODg5YjAwOTNiYTQ2NGJlNzYzYjRiZTJmODY2NjEwMDA0NjVjM2M=
@@ -1,3 +1,3 @@
1
1
  module Assemblyline
2
- CLI_VERSION = "0.0.3"
2
+ CLI_VERSION = "0.0.4"
3
3
  end
@@ -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.3
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-18 00:00:00.000000000 Z
11
+ date: 2015-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor