hako 0.7.0 → 0.7.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
  SHA1:
3
- metadata.gz: fae55ff67c1a85f1505702a1264c3e9b4db5731c
4
- data.tar.gz: 7daf5a6420831633edb17698ebd3ce2973fa8ca2
3
+ metadata.gz: d3d9c90e89394fc7f064a57f0ae81e1048262fe8
4
+ data.tar.gz: 7c91399a8265c5b71114b2e318e163064e93c074
5
5
  SHA512:
6
- metadata.gz: 6c78607e33a941e24056c06a2ca6dd155c54a66e7c90ff53fae76cb2eb4f7d4d0fe9af6c603fd5279a3c03a3cda70efd8d8d276392ccec12131d738e5a3044cd
7
- data.tar.gz: b54c0b53e8ded575e36558e56205829e80441a7dea61b44f8d3db33e297d06e5bea2848f9f39d6a690622053ae487f6585592d8dfef649a7f2cdc6d05e41a5d2
6
+ metadata.gz: c99e6a8cb5da22ef0f1306fa3be90c5de4a8167cd267c6934d54a3854e6a627cc86bf91d63c8ff0fd6e00995793c9e58d6565dd2c19d15c391c6e9e348aa0f06
7
+ data.tar.gz: f37d8c0dfbdb5bc3f3fe6ddc1b5a6f9c371af0efbbb0b6749b40c51f6972d8d9134782d76415f3183f1c358ef2efffecd3455aed36d028e11d2fafb7210f6631
data/.rubocop.yml CHANGED
@@ -2,7 +2,7 @@ inherit_from: .rubocop_todo.yml
2
2
 
3
3
  AllCops:
4
4
  DisplayCopNames: true
5
- TargetRubyVersion: 2.2 # TODO: Upgrade to 2.3
5
+ TargetRubyVersion: 2.3
6
6
 
7
7
  Style/GuardClause:
8
8
  Enabled: false
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 hako.gemspec
data/Rakefile CHANGED
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require 'bundler/gem_tasks'
2
3
  require 'rspec/core/rake_task'
3
4
  require 'rubocop/rake_task'
data/bin/console CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
2
3
 
3
4
  require 'bundler/setup'
4
5
  require 'hako'
data/exe/hako CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
2
3
  require 'hako/cli'
3
4
 
4
5
  Hako::CLI.start
data/hako.gemspec CHANGED
@@ -1,4 +1,4 @@
1
- # coding: utf-8
1
+ # frozen_string_literal: true
2
2
  lib = File.expand_path('../lib', __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
  require 'hako/version'
data/lib/hako.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require 'logger'
2
3
  require 'hako/version'
3
4
 
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require 'hako/container'
2
3
 
3
4
  module Hako
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require 'hako/yaml_loader'
2
3
 
3
4
  module Hako
data/lib/hako/cli.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require 'thor'
2
3
 
3
4
  module Hako
@@ -20,6 +21,12 @@ module Hako
20
21
  Commander.new(Application.new(yaml_path)).oneshot([command, *args], tag: options[:tag])
21
22
  end
22
23
 
24
+ desc 'show-yaml FILE', 'Show expanded YAML'
25
+ def show_yaml(yaml_path)
26
+ require 'hako/yaml_loader'
27
+ puts YamlLoader.load(Pathname.new(yaml_path)).to_yaml
28
+ end
29
+
23
30
  desc 'status FILE', 'Show deployment status'
24
31
  def status(yaml_path)
25
32
  require 'hako/application'
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require 'hako/app_container'
2
3
  require 'hako/container'
3
4
  require 'hako/env_expander'
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module Hako
2
3
  class Container
3
4
  def initialize(app, definition, dry_run:)
@@ -28,7 +29,7 @@ module Hako
28
29
 
29
30
  private
30
31
 
31
- PROVIDERS_KEY = '$providers'.freeze
32
+ PROVIDERS_KEY = '$providers'
32
33
 
33
34
  def expand_env(env)
34
35
  env = env.dup
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require 'set'
2
3
  require 'strscan'
3
4
  require 'hako/env_providers'
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require 'hako/error'
2
3
 
3
4
  module Hako
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module Hako
2
3
  module EnvProviders
3
4
  end
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require 'hako/env_provider'
2
3
 
3
4
  module Hako
data/lib/hako/error.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module Hako
2
3
  class Error < StandardError
3
4
  end
data/lib/hako/front.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require 'hako/container'
2
3
 
3
4
  module Hako
data/lib/hako/fronts.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module Hako
2
3
  module Fronts
3
4
  end
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require 'erb'
2
3
  require 'hako/front'
3
4
 
data/lib/hako/loader.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module Hako
2
3
  class Loader
3
4
  def initialize(base_module, base_path)
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require 'aws-sdk'
2
3
 
3
4
  module Hako
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module Hako
2
3
  module Schedulers
3
4
  end
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require 'hako/scheduler'
2
3
 
3
4
  module Hako
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require 'aws-sdk'
2
3
  require 'hako'
3
4
  require 'hako/scheduler'
@@ -7,7 +8,7 @@ require 'hako/schedulers/ecs_elb'
7
8
  module Hako
8
9
  module Schedulers
9
10
  class Ecs < Scheduler
10
- DEFAULT_CLUSTER = 'default'.freeze
11
+ DEFAULT_CLUSTER = 'default'
11
12
  DEFAULT_FRONT_PORT = 10000
12
13
 
13
14
  def initialize(app_id, options, force:, dry_run:)
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module Hako
2
3
  module Schedulers
3
4
  class EcsDefinitionComparator
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require 'aws-sdk'
2
3
  require 'hako'
3
4
 
data/lib/hako/scripts.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module Hako
2
3
  module Scripts
3
4
  end
data/lib/hako/version.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module Hako
2
- VERSION = '0.7.0'.freeze
3
+ VERSION = '0.7.1'
3
4
  end
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require 'psych'
2
3
 
3
4
  module Hako
@@ -20,8 +21,8 @@ module Hako
20
21
  end
21
22
 
22
23
  class Visitor < Psych::Visitors::ToRuby
23
- INCLUDE_TAG = 'tag:include'.freeze
24
- SHOVEL = '<<'.freeze
24
+ INCLUDE_TAG = 'tag:include'
25
+ SHOVEL = '<<'
25
26
 
26
27
  def initialize(scanner, class_loader, &block)
27
28
  super(scanner, class_loader)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hako
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kohei Suzuki