ruby_fly 0.31.0 → 0.36.0.pre.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1aec81474f0e12fc29330cc203f355ecf8d7c3bf7e0e6c5416114d19cbcdb260
4
- data.tar.gz: ef2ef9f67bb65f2280ecc229cce167c54f1cdb92986cd32eadcdef6f274f5297
3
+ metadata.gz: e2f492d08d63ec84fa9dd94cae26a1e546cc104dfd3715729058dd794ea76351
4
+ data.tar.gz: b3a2d25dfc8738c0a680aff6e1af324478e416472623f6766077157f53576de1
5
5
  SHA512:
6
- metadata.gz: 742493d392c7a4dd0cc2f265706e98655248b3b40b02c0ac5c9fde5c5acbec50e73446ad403fdbebc78069673b9bddfae4de6e7ce3e778ada8e4577e430d16a4
7
- data.tar.gz: b8b06eee78c37cbb4944eaca495e5cb26bf0c9217b7586422ecea78d0e669972c878c45b51e78bfa07d89ffcb471b6f61592f11792bafc969713ca9c525b2f07
6
+ metadata.gz: beeef706ef8fa319ef155f83c9e8cc5734243eeac404914059ecd93afeea4aa16e53df55c4f1904c4fb3819ee04e96f1d965d9f0e7c3d15c965a53f160239e6f
7
+ data.tar.gz: 1477ee9cb763e88e4dc567dffc2a795e63602a467823a6fbcff82a4ce179740ed0693fde4757d81326ddd21ad1dbcf19b6d48bd121e7aaa5fdf04844ea560090
data/CODE_OF_CONDUCT.md CHANGED
@@ -55,7 +55,7 @@ further defined and clarified by project maintainers.
55
55
  ## Enforcement
56
56
 
57
57
  Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
- reported by contacting the project team at tobyclemson@gmail.com. All
58
+ reported by contacting the project team at maintainers@infrablocks.io. All
59
59
  complaints will be reviewed and investigated and will result in a response that
60
60
  is deemed necessary and appropriate to the circumstances. The project team is
61
61
  obligated to maintain confidentiality with regard to the reporter of an incident.
data/Gemfile.lock CHANGED
@@ -1,13 +1,13 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby_fly (0.31.0)
4
+ ruby_fly (0.36.0.pre.1)
5
5
  lino (>= 1.5)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- activesupport (6.1.0)
10
+ activesupport (6.1.3.2)
11
11
  concurrent-ruby (~> 1.0, >= 1.0.2)
12
12
  i18n (>= 1.6, < 2)
13
13
  minitest (>= 5.1)
@@ -16,28 +16,36 @@ GEM
16
16
  addressable (2.7.0)
17
17
  public_suffix (>= 2.0.2, < 5.0)
18
18
  colored2 (3.1.2)
19
- concurrent-ruby (1.1.7)
19
+ concurrent-ruby (1.1.8)
20
20
  diff-lcs (1.4.4)
21
- excon (0.78.1)
22
- fakefs (1.3.1)
23
- faker (2.15.1)
21
+ excon (0.82.0)
22
+ fakefs (1.3.2)
23
+ faker (2.18.0)
24
24
  i18n (>= 1.6, < 2)
25
- faraday (1.3.0)
25
+ faraday (1.4.2)
26
+ faraday-em_http (~> 1.0)
27
+ faraday-em_synchrony (~> 1.0)
28
+ faraday-excon (~> 1.1)
26
29
  faraday-net_http (~> 1.0)
30
+ faraday-net_http_persistent (~> 1.1)
27
31
  multipart-post (>= 1.2, < 3)
28
- ruby2_keywords
29
- faraday-net_http (1.0.0)
30
- gem-release (2.2.0)
32
+ ruby2_keywords (>= 0.0.4)
33
+ faraday-em_http (1.0.0)
34
+ faraday-em_synchrony (1.0.0)
35
+ faraday-excon (1.1.0)
36
+ faraday-net_http (1.0.1)
37
+ faraday-net_http_persistent (1.1.0)
38
+ gem-release (2.2.1)
31
39
  hamster (3.0.0)
32
40
  concurrent-ruby (~> 1.0)
33
- i18n (1.8.6)
41
+ i18n (1.8.10)
34
42
  concurrent-ruby (~> 1.0)
35
- lino (1.7.0)
43
+ lino (3.0.0)
36
44
  hamster (~> 3.0)
37
45
  open4 (~> 1.3)
38
- minitest (5.14.2)
46
+ minitest (5.14.4)
39
47
  multipart-post (2.1.1)
40
- octokit (4.20.0)
48
+ octokit (4.21.0)
41
49
  faraday (>= 0.9)
42
50
  sawyer (~> 0.8.0, >= 0.5.3)
43
51
  open4 (1.3.4)
@@ -56,7 +64,7 @@ GEM
56
64
  octokit (~> 4.16)
57
65
  rake_factory (~> 0.23)
58
66
  sshkey (~> 2.0)
59
- rake_gpg (0.14.0)
67
+ rake_gpg (0.16.0)
60
68
  rake_factory (>= 0.23, < 1)
61
69
  ruby_gpg2 (>= 0.6, < 1)
62
70
  rake_ssh (0.6.0)
@@ -72,11 +80,11 @@ GEM
72
80
  rspec-expectations (3.10.1)
73
81
  diff-lcs (>= 1.2.0, < 2.0)
74
82
  rspec-support (~> 3.10.0)
75
- rspec-mocks (3.10.1)
83
+ rspec-mocks (3.10.2)
76
84
  diff-lcs (>= 1.2.0, < 2.0)
77
85
  rspec-support (~> 3.10.0)
78
- rspec-support (3.10.1)
79
- ruby2_keywords (0.0.2)
86
+ rspec-support (3.10.2)
87
+ ruby2_keywords (0.0.4)
80
88
  ruby_gpg2 (0.8.0)
81
89
  lino (>= 1.5)
82
90
  sawyer (0.8.2)
@@ -104,4 +112,4 @@ DEPENDENCIES
104
112
  ruby_fly!
105
113
 
106
114
  BUNDLED WITH
107
- 2.2.4
115
+ 2.2.18
data/README.md CHANGED
@@ -162,7 +162,7 @@ openssl aes-256-cbc \
162
162
  ## Contributing
163
163
 
164
164
  Bug reports and pull requests are welcome on GitHub at
165
- https://github.com/tobyclemson/ruby_fly. This project is intended to be a safe,
165
+ https://github.com/infrablocks/ruby_fly. This project is intended to be a safe,
166
166
  welcoming space for collaboration, and contributors are expected to adhere to
167
167
  the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
168
168
 
data/lib/ruby_fly.rb CHANGED
@@ -40,6 +40,10 @@ module RubyFly
40
40
  Commands::UnpausePipeline.new.execute(opts)
41
41
  end
42
42
 
43
+ def destroy_pipeline(opts = {})
44
+ Commands::DestroyPipeline.new.execute(opts)
45
+ end
46
+
43
47
  def version
44
48
  Commands::Version.new.execute
45
49
  end
@@ -3,6 +3,7 @@ require_relative 'commands/status'
3
3
  require_relative 'commands/get_pipeline'
4
4
  require_relative 'commands/set_pipeline'
5
5
  require_relative 'commands/unpause_pipeline'
6
+ require_relative 'commands/destroy_pipeline'
6
7
  require_relative 'commands/version'
7
8
 
8
9
  module RubyFly
@@ -0,0 +1,41 @@
1
+ require 'lino'
2
+ require_relative 'base'
3
+ require_relative 'mixins/environment'
4
+
5
+ module RubyFly
6
+ module Commands
7
+ class DestroyPipeline < Base
8
+ include Mixins::Environment
9
+
10
+ def configure_command(builder, opts)
11
+ builder = super(builder, opts)
12
+
13
+ missing_params = [
14
+ :target,
15
+ :pipeline
16
+ ].select { |param| opts[param].nil? }
17
+
18
+ unless missing_params.empty?
19
+ description = missing_params.map { |p| "'#{p}'" }.join(', ')
20
+ raise(
21
+ ArgumentError,
22
+ "Error: #{description} required but not provided.")
23
+ end
24
+
25
+ target = opts[:target]
26
+ pipeline = opts[:pipeline]
27
+ non_interactive = opts[:non_interactive]
28
+ team = opts[:team]
29
+
30
+ builder
31
+ .with_subcommand('destroy-pipeline') do |sub|
32
+ sub = sub.with_option('-t', target)
33
+ sub = sub.with_option('-p', pipeline)
34
+ sub = sub.with_option('--team', team) if team
35
+ sub = sub.with_flag('-n') if non_interactive
36
+ sub
37
+ end
38
+ end
39
+ end
40
+ end
41
+ end
@@ -1,3 +1,3 @@
1
1
  module RubyFly
2
- VERSION = '0.31.0'
2
+ VERSION = '0.36.0.pre.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_fly
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.31.0
4
+ version: 0.36.0.pre.1
5
5
  platform: ruby
6
6
  authors:
7
- - Toby Clemson
7
+ - InfraBlocks Maintainers
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-01-05 00:00:00.000000000 Z
11
+ date: 2021-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lino
@@ -167,7 +167,7 @@ dependencies:
167
167
  description: Wraps the concourse fly CLI so that fly can be invoked from a Ruby script
168
168
  or Rakefile.
169
169
  email:
170
- - tobyclemson@gmail.com
170
+ - maintainers@infrablocks.io
171
171
  executables: []
172
172
  extensions: []
173
173
  extra_rdoc_files: []
@@ -183,6 +183,7 @@ files:
183
183
  - lib/ruby_fly.rb
184
184
  - lib/ruby_fly/commands.rb
185
185
  - lib/ruby_fly/commands/base.rb
186
+ - lib/ruby_fly/commands/destroy_pipeline.rb
186
187
  - lib/ruby_fly/commands/get_pipeline.rb
187
188
  - lib/ruby_fly/commands/login.rb
188
189
  - lib/ruby_fly/commands/mixins/environment.rb
@@ -192,7 +193,7 @@ files:
192
193
  - lib/ruby_fly/commands/version.rb
193
194
  - lib/ruby_fly/rc.rb
194
195
  - lib/ruby_fly/version.rb
195
- homepage: https://github.com/tobyclemson/ruby_fly
196
+ homepage: https://github.com/infrablocks/ruby_fly
196
197
  licenses:
197
198
  - MIT
198
199
  metadata: {}
@@ -207,9 +208,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
207
208
  version: '2.6'
208
209
  required_rubygems_version: !ruby/object:Gem::Requirement
209
210
  requirements:
210
- - - ">="
211
+ - - ">"
211
212
  - !ruby/object:Gem::Version
212
- version: '0'
213
+ version: 1.3.1
213
214
  requirements: []
214
215
  rubygems_version: 3.0.1
215
216
  signing_key: