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 +4 -4
- data/.rubocop.yml +1 -1
- data/Gemfile +1 -0
- data/Rakefile +1 -0
- data/bin/console +1 -0
- data/exe/hako +1 -0
- data/hako.gemspec +1 -1
- data/lib/hako.rb +1 -0
- data/lib/hako/app_container.rb +1 -0
- data/lib/hako/application.rb +1 -0
- data/lib/hako/cli.rb +7 -0
- data/lib/hako/commander.rb +1 -0
- data/lib/hako/container.rb +2 -1
- data/lib/hako/env_expander.rb +1 -0
- data/lib/hako/env_provider.rb +1 -0
- data/lib/hako/env_providers.rb +1 -0
- data/lib/hako/env_providers/file.rb +1 -0
- data/lib/hako/error.rb +1 -0
- data/lib/hako/front.rb +1 -0
- data/lib/hako/fronts.rb +1 -0
- data/lib/hako/fronts/nginx.rb +1 -0
- data/lib/hako/loader.rb +1 -0
- data/lib/hako/scheduler.rb +1 -0
- data/lib/hako/schedulers.rb +1 -0
- data/lib/hako/schedulers/echo.rb +1 -0
- data/lib/hako/schedulers/ecs.rb +2 -1
- data/lib/hako/schedulers/ecs_definition_comparator.rb +1 -0
- data/lib/hako/schedulers/ecs_elb.rb +1 -0
- data/lib/hako/scripts.rb +1 -0
- data/lib/hako/version.rb +2 -1
- data/lib/hako/yaml_loader.rb +3 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d3d9c90e89394fc7f064a57f0ae81e1048262fe8
|
4
|
+
data.tar.gz: 7c91399a8265c5b71114b2e318e163064e93c074
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c99e6a8cb5da22ef0f1306fa3be90c5de4a8167cd267c6934d54a3854e6a627cc86bf91d63c8ff0fd6e00995793c9e58d6565dd2c19d15c391c6e9e348aa0f06
|
7
|
+
data.tar.gz: f37d8c0dfbdb5bc3f3fe6ddc1b5a6f9c371af0efbbb0b6749b40c51f6972d8d9134782d76415f3183f1c358ef2efffecd3455aed36d028e11d2fafb7210f6631
|
data/.rubocop.yml
CHANGED
data/Gemfile
CHANGED
data/Rakefile
CHANGED
data/bin/console
CHANGED
data/exe/hako
CHANGED
data/hako.gemspec
CHANGED
data/lib/hako.rb
CHANGED
data/lib/hako/app_container.rb
CHANGED
data/lib/hako/application.rb
CHANGED
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'
|
data/lib/hako/commander.rb
CHANGED
data/lib/hako/container.rb
CHANGED
@@ -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'
|
32
|
+
PROVIDERS_KEY = '$providers'
|
32
33
|
|
33
34
|
def expand_env(env)
|
34
35
|
env = env.dup
|
data/lib/hako/env_expander.rb
CHANGED
data/lib/hako/env_provider.rb
CHANGED
data/lib/hako/env_providers.rb
CHANGED
data/lib/hako/error.rb
CHANGED
data/lib/hako/front.rb
CHANGED
data/lib/hako/fronts.rb
CHANGED
data/lib/hako/fronts/nginx.rb
CHANGED
data/lib/hako/loader.rb
CHANGED
data/lib/hako/scheduler.rb
CHANGED
data/lib/hako/schedulers.rb
CHANGED
data/lib/hako/schedulers/echo.rb
CHANGED
data/lib/hako/schedulers/ecs.rb
CHANGED
@@ -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'
|
11
|
+
DEFAULT_CLUSTER = 'default'
|
11
12
|
DEFAULT_FRONT_PORT = 10000
|
12
13
|
|
13
14
|
def initialize(app_id, options, force:, dry_run:)
|
data/lib/hako/scripts.rb
CHANGED
data/lib/hako/version.rb
CHANGED
data/lib/hako/yaml_loader.rb
CHANGED
@@ -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'
|
24
|
-
SHOVEL = '<<'
|
24
|
+
INCLUDE_TAG = 'tag:include'
|
25
|
+
SHOVEL = '<<'
|
25
26
|
|
26
27
|
def initialize(scanner, class_loader, &block)
|
27
28
|
super(scanner, class_loader)
|