mamiya 0.0.1.beta1 → 0.0.1.beta3

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: 782cb5f0d2988afede38796bf84f3b37f3343684
4
- data.tar.gz: 2d4f5b6102d93c5e05cbc3779364466ca171bece
3
+ metadata.gz: feb2301bfc6bf520112e3606038d9c5387a3bd94
4
+ data.tar.gz: b4f96200bd9d5d2495cfd62076f4a9e804f6ef61
5
5
  SHA512:
6
- metadata.gz: 74749204a5f0f8071a55889fd1e418f3e4c9c2a721f643f1ece3dca210539b33a50627e5cd6e1d1bf3d7b04c2baf758cc6c886738feb2fc9d4547939fbee6cc7
7
- data.tar.gz: 6d46ddc42aa6b206640edcf7d96588b56f11271d7cf606b8522d261bfe9ab64a878d4b774f70bb5485379339cb22cc0f62c3f1db27077689027dcaa65f82c8b7
6
+ metadata.gz: d18e32e3a5ee9ec3a46560337b810c254f1f51008eb1e3ec0be4ab8a3df3b774d73397e21bb6b341b317602b14ec47db5b3ef1281f9300c09f2b40faf81ba47f
7
+ data.tar.gz: 2004514ee647cec743bcce5a0230f0ceb012157bcae4662a32ba82efda376e8307c0cbdd142c03334e836969ef5fc1feb3217a0f298370b315972a4a0c9ab8c8
@@ -41,3 +41,7 @@ deploy_to_for(:myapp).mkpath unless deploy_to_for(:myapp).exist?
41
41
  set :keep_packages, 3
42
42
  set :keep_prereleases, 3
43
43
  set :fetch_sleep, 2
44
+
45
+ labels do
46
+ [:"p#{ENV['PORT']}"]
47
+ end
@@ -237,7 +237,7 @@ not distributed: #{dist['not_distributed_count']} agents
237
237
  rescue Exception => e
238
238
  @deploy_exception = e
239
239
  $stderr.puts "ERROR: #{e.inspect}"
240
- $stderr.puts "\t#{e.backtrace("\n\t")}"
240
+ $stderr.puts "\t#{e.backtrace.join("\n\t")}"
241
241
  ensure
242
242
  config.after_deploy[@deploy_exception] if config
243
243
  config.after_deploy_or_rollback[@deploy_exception] if config
@@ -7,8 +7,8 @@ module Mamiya
7
7
  class ApplicationStatus
8
8
  def initialize(agent_monitor, application, labels: nil)
9
9
  @application = application
10
- @agents = agent_monitor.statuses(labels: @labels).reject { |_, s| s['master'] }
11
10
  @labels = labels
11
+ @agents = agent_monitor.statuses(labels: labels).reject { |_, s| s['master'] }
12
12
  end
13
13
 
14
14
  attr_reader :labels, :application, :agents
@@ -8,8 +8,8 @@ module Mamiya
8
8
  def initialize(agent_monitor, application, package, labels: nil)
9
9
  @application = application
10
10
  @package = package
11
- @agents = agent_monitor.statuses(labels: @labels).reject { |_, s| s['master'] }
12
11
  @labels = labels
12
+ @agents = agent_monitor.statuses(labels: labels).reject { |_, s| s['master'] }
13
13
  end
14
14
 
15
15
  attr_reader :labels, :application, :package, :agents
@@ -1,3 +1,3 @@
1
1
  module Mamiya
2
- VERSION = "0.0.1.beta1"
2
+ VERSION = "0.0.1.beta3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mamiya
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.beta1
4
+ version: 0.0.1.beta3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shota Fukumori (sora_h)