opzworks 0.12.3 → 0.12.4

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
  SHA1:
3
- metadata.gz: e967928f87239b584f45d8af269bd48662b80171
4
- data.tar.gz: 40f04139f1ef3457f1a8f027f71712b87c2539fa
3
+ metadata.gz: 958864d65b2ffee9a2c69d7ab0b8a3bdf00cf392
4
+ data.tar.gz: 4a6076ccf8ee8d8d660a1965fcc4c652891bd734
5
5
  SHA512:
6
- metadata.gz: 25dd95265c036d91cc21b283a673b706c91a52afa500a3410a82f76a48bb48cf903a39b11a89ce113968134a2a8fd13a658d72002e9a63342f52de522423b2f5
7
- data.tar.gz: 586bb8b49770c926c06eecdb15113b41266f0725896b86350167f4565287b38bbd83522b01e793067c72c66d533d8e4698d7be561950dda11865f8bf58094935
6
+ metadata.gz: ce662eec86a32ec2ce410f1908fc6bab9f716d2d05106ce5aabbab57a99021cbd2ae6229e71f62eb919a9c2ee84088793aa436634865fb0b573a609eba037e09
7
+ data.tar.gz: 6f37605a16027f58c0de2c939ca492fe20e3d54e3a17feaf87e258584b55448277183c47125220bc0925942d782cd4b85c58df75edb6650516e596389e18ca52
data/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  changelog
2
2
  =========
3
3
 
4
+ 0.12.4
5
+ ------
6
+ * large lint for rubocop 2.3 syntax
7
+
4
8
  0.12.3
5
9
  ------
6
10
  * cull backups
data/Gemfile CHANGED
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  source 'https://rubygems.org'
2
3
 
3
4
  # Specify your gem's dependencies in opzworks.gemspec
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- opzworks (0.12.2)
4
+ opzworks (0.12.3)
5
5
  aws-sdk (~> 2.2.37)
6
6
  diffy (~> 3.1.0)
7
7
  faraday (~> 0.9.2)
data/Rakefile CHANGED
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require 'bundler/gem_tasks'
2
3
 
3
4
  namespace :test do
data/bin/opzworks CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
2
3
 
3
4
  require 'pathname'
4
5
  bin_file = Pathname.new(__FILE__).realpath
data/lib/opzworks/cli.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'trollop'
2
4
  require 'opzworks'
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'aws-sdk'
2
4
  require 'trollop'
3
5
  require 'opzworks'
@@ -147,12 +149,12 @@ module OpzWorks
147
149
  puts "\t#{e}"
148
150
  else
149
151
  backup_arr = []
150
- cull.contents.each { |k,v| backup_arr << k.key }
152
+ cull.contents.each { |k| backup_arr << k.key }
151
153
  backup_arr.pop(5) # keep last 5 backups
152
154
 
153
- if backup_arr.length != 0
155
+ unless backup_arr.empty?
154
156
  delete_arr = []
155
- while backup_arr.length > 0
157
+ until backup_arr.empty?
156
158
  puts "Adding backup #{backup_arr[0]} to the cull list".foreground(:green)
157
159
  delete_arr << backup_arr.pop
158
160
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'aws-sdk'
2
4
  require 'trollop'
3
5
  require 'opzworks'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'aws-sdk'
2
4
  require 'trollop'
3
5
  require 'faraday'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  def opsworks_list_ips(options = {})
2
4
  response = @client.describe_instances options
3
5
  @ip_addrs = []
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  def manage_berks_repos
2
4
  config = OpzWorks.config
3
5
  @target_path = File.expand_path(config.berks_repository_path + "/opsworks-#{@project}", File.dirname(__FILE__))
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  def populate_stack(input, data = {})
2
4
  # loops over inputs
3
5
  match = {}
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # wrap run_locally so we can catch failures
2
4
  def run_local(cmd)
3
5
  require 'English'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'aws-sdk'
2
4
  require 'trollop'
3
5
  require 'diffy'
@@ -4,8 +4,8 @@ require 'aws-sdk'
4
4
  require 'trollop'
5
5
  require 'opzworks'
6
6
 
7
- SSH_PREFIX = '# --- OpzWorks ---'.freeze
8
- SSH_POSTFIX = '# --- End of OpzWorks ---'.freeze
7
+ SSH_PREFIX = '# --- OpzWorks ---'
8
+ SSH_POSTFIX = '# --- End of OpzWorks ---'
9
9
 
10
10
  module OpzWorks
11
11
  class Commands
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'inifile'
2
4
  require 'rainbow'
3
5
 
data/lib/opzworks/meta.rb CHANGED
@@ -1,8 +1,9 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  module OpzWorks
3
- VERSION = '0.12.3'.freeze
4
+ VERSION = '0.12.4'
4
5
  AUTHORS = ['Grant Heffernan', 'Mapzen'].freeze
5
6
  EMAIL = ['grant@mapzen.com'].freeze
6
- DESCRIPTION = 'OpzWorks Utilities'.freeze
7
- SUMMARY = 'Command line interface for Amazon OpsWorks'.freeze
7
+ DESCRIPTION = 'OpzWorks Utilities'
8
+ SUMMARY = 'Command line interface for Amazon OpsWorks'
8
9
  end
data/lib/opzworks.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'opzworks/meta'
2
4
  require 'opzworks/config'
3
5
 
data/opzworks.gemspec CHANGED
@@ -1,4 +1,5 @@
1
1
  # coding: utf-8
2
+ # frozen_string_literal: true
2
3
 
3
4
  root = File.expand_path('..', __FILE__)
4
5
  lib = File.expand_path('lib', root)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opzworks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.3
4
+ version: 0.12.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Grant Heffernan