assemblyline-cli 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- YzQ2ZGIzOGJmOGNlYmM1YzY2OThlZGZjNTNmNTk2OGUwMGFmMjM3YQ==
5
- data.tar.gz: !binary |-
6
- YzgxYTlmNWVmY2U3NWRmODEzMmZmZGU2OGU5ODlhZjNkNGI0OGJmYw==
2
+ SHA1:
3
+ metadata.gz: f0503156dc1216f0eeabf88439428799b9428780
4
+ data.tar.gz: dfc8dbe138236ee7d31cae9f76a905dde0726635
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- OTkyNDdlMjkwNDg0ZDAxMWFlZjkyN2UxZTIxZTViYzcxY2ExZWUwNGRlMTVi
10
- MzIyNjM4MTdlNTU1NDk2NGExOWI0MDkxMjU2NTg0NDEzYmU3MjM4OWNhNzZk
11
- NGE3ZmFlMTYyZDk5NWY1OTlkNTEzZmVkM2NkMDdmYWMyYWQ3OTk=
12
- data.tar.gz: !binary |-
13
- MzQzODllMGIzMTA4YjA1ODIyNGEwZWJkMjdlOTkwYzc0ZjJlNzYwMGZjMGJj
14
- MDU1ZmQyYjUwN2Y5ZjMxNjc0Mjc1Y2MxMjkzYmM5Y2I3OWVmYjNiMDNiNWQ0
15
- YTRmMTZkMjQ3YmRhNDg3YWEzNTZmNDA5MDg5NDRmNWU0NzQ0Y2M=
6
+ metadata.gz: affe342046f7fbb8640e24897577f75e0ec69c45d63e0d8e704b8b6146d3720634fb29a341c17baddf6e2d0a592a6c2902fc6b4d11bf8d3837d65397b3068431
7
+ data.tar.gz: f428b2520c256f69e4c9d4c45bd9cabc891e0cd0d4e853d9d9ec4b2dafed8b249ee5b628e72891cdac7a5e059cd5cab7fc02ac67940bee7b0ef06f959bda5465
@@ -4,8 +4,9 @@ require 'thor'
4
4
  module Assemblyline
5
5
  class CLI < Thor
6
6
  desc 'build URL (REF)', 'Build an assemblyline project from a git url and optionaly merge REF into master'
7
+ option :debug, type: :boolean
7
8
  def build(url, ref = nil)
8
- exec "docker run --rm #{bind_mounts} #{env_flags} #{assemblyline_builder} bin/build #{url} #{ref}"
9
+ exec "docker run --rm #{bind_mounts} #{env_flags} #{debug_flags} #{assemblyline_builder} bin/build #{url} #{ref}"
9
10
  end
10
11
 
11
12
  desc 'update', 'update assemblyline'
@@ -22,6 +23,11 @@ module Assemblyline
22
23
 
23
24
  private
24
25
 
26
+ def debug_flags
27
+ return unless options[:debug]
28
+ "-v #{Dir.pwd}:/usr/src -ti"
29
+ end
30
+
25
31
  def env_flags
26
32
  env.map { |var, val| "-e #{var}=#{val}" }.join(' ')
27
33
  end
@@ -1,3 +1,3 @@
1
1
  module Assemblyline
2
- CLI_VERSION = '0.0.5'
2
+ CLI_VERSION = '0.0.6'
3
3
  end
metadata CHANGED
@@ -1,69 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: assemblyline-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
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-20 00:00:00.000000000 Z
11
+ date: 2015-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0.19'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0.19'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '1.5'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.5'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ! '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ! '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: reevoocop
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ! '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ! '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  description:
@@ -74,7 +74,7 @@ executables:
74
74
  extensions: []
75
75
  extra_rdoc_files: []
76
76
  files:
77
- - .gitignore
77
+ - ".gitignore"
78
78
  - Gemfile
79
79
  - LICENSE.txt
80
80
  - README.md
@@ -93,17 +93,17 @@ require_paths:
93
93
  - lib
94
94
  required_ruby_version: !ruby/object:Gem::Requirement
95
95
  requirements:
96
- - - ! '>='
96
+ - - ">="
97
97
  - !ruby/object:Gem::Version
98
98
  version: '0'
99
99
  required_rubygems_version: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ! '>='
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  requirements: []
105
105
  rubyforge_project:
106
- rubygems_version: 2.4.5
106
+ rubygems_version: 2.2.2
107
107
  signing_key:
108
108
  specification_version: 4
109
109
  summary: A super-lightweight wrapper to start assemblyline tasks