luban 0.9.12 → 0.9.13

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: 51db0c8680dd9ed4b6d19a0e8b99c28d9c90bacb
4
- data.tar.gz: e097338152892da6526a9ed445c6154b2e127f1b
3
+ metadata.gz: a851ff43f9f30fc9505528691dce2583094b2df4
4
+ data.tar.gz: e41e631b827d2aec83411a094fd031ab42eae1f4
5
5
  SHA512:
6
- metadata.gz: 9579b032ed20af7cc705cd00c45b3156a92a60228d92309aa9e14120d0f55c805d837dbcefac3b119664bd608f2715292509da77e09819841d0bd0bb632d1228
7
- data.tar.gz: 989fd8aff640d2f0c8f20f2e2e11ccb52307458c32208e7b47b41216e952c0927c7a73ed2db00d29a3c11efd0a4bbb6f6a103aebcf2e8c89f563f5c1f5df99ef
6
+ metadata.gz: 798ed949d9b1a81b56f77cbb12522da456e56fa8034d5e5685ed29b73f970996ed059ec96dd43c6cb0c5825850f314c7e4ee052351007331700b31c210c33f92
7
+ data.tar.gz: 5d9562a0e1767d106f55b09d58a088aec362c6351693cb8e647049788c5af3522a97a63418363b5fe5c2a54b7e860b80c12b18d73114937c939424b488fb5ffd
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Change log
2
2
 
3
+ ## Version 0.9.13 (Oct 28, 2016)
4
+
5
+ New features:
6
+ * Added Luban::Deployment::Script to handle deployment for script-based application
7
+
8
+ Bug fixes:
9
+ * Ensured only one controller from service or application controller can be executed
10
+
3
11
  ## Version 0.9.12 (Oct 27, 2016)
4
12
 
5
13
  Bug fixes:
@@ -197,8 +197,11 @@ module Luban
197
197
  %i(show_current show_summary).each do |action|
198
198
  define_method(action) do |args:, opts:|
199
199
  show_app_environment
200
- send("#{action}_packages!", args: args, opts: opts)
201
- send("#{action}_application", args: args, opts: opts) if has_source?
200
+ if has_services?
201
+ send("#{action}_packages!", args: args, opts: opts)
202
+ elsif has_source?
203
+ send("#{action}_application", args: args, opts: opts)
204
+ end
202
205
  end
203
206
  action_on_packages "#{action}_packages!", as: action
204
207
  end
@@ -0,0 +1,7 @@
1
+ module Luban
2
+ module Deployment
3
+ class Script < Luban::Deployment::Application
4
+ def controllable?; false; end
5
+ end
6
+ end
7
+ end
@@ -3,3 +3,4 @@ require_relative 'cli/project'
3
3
  require_relative 'cli/package'
4
4
  require_relative 'cli/service'
5
5
  require_relative 'cli/application'
6
+ require_relative 'cli/script'
@@ -1,5 +1,5 @@
1
1
  module Luban
2
2
  module Deployment
3
- VERSION = "0.9.12"
3
+ VERSION = "0.9.13"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: luban
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.12
4
+ version: 0.9.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rubyist Lei
@@ -123,6 +123,7 @@ files:
123
123
  - lib/luban/deployment/cli/package/installer/paths.rb
124
124
  - lib/luban/deployment/cli/package/worker.rb
125
125
  - lib/luban/deployment/cli/project.rb
126
+ - lib/luban/deployment/cli/script.rb
126
127
  - lib/luban/deployment/cli/service.rb
127
128
  - lib/luban/deployment/cli/service/base.rb
128
129
  - lib/luban/deployment/cli/service/configurator.rb