sunzi-rails 0.2.13 → 0.2.14

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: c2dc5beb02c81e4dcb998788020ed695e24cf890
4
- data.tar.gz: c586a3e08bd470fb2c6d768d37005e232843879b
3
+ metadata.gz: be3e8368828a448b362bf589d42fac5f8835b726
4
+ data.tar.gz: c9c802118b0ee2aea8791bdfef7e31f9a3ceacaf
5
5
  SHA512:
6
- metadata.gz: 67d1db7e4f726918274441e41ac8f5da15dc1076fc01cb015b8192e5197616212323975a4245789ef2e746c323eb3fb49a42388ab8b86a04ba0d0da529793069
7
- data.tar.gz: 7fa41a404ebe97d05eeb6b017596b437ddf909036c39dad65710026da2e92f2982bb16103af8ae8798cf33f83a71ff63f3445c9d0662df0bbac693bb5757b262
6
+ metadata.gz: 49bca19603f7ab620ed78f51bdc63772e7da630d50bbe79934084096e6efb53348abfe68599f238e308b413de2ca887156b86c146e1f8cf1ac745749393e85cf
7
+ data.tar.gz: baa6e3cf9fdd19db57b801d768abb6f8f9ca10dc4c4072f95c034af4d14322a1fe7bb27811a757a974e595fd2b99c668c1fa287d3c4d5f18a15081e478fae496
@@ -25,10 +25,6 @@ module Sunzi
25
25
  end
26
26
  end
27
27
 
28
- def server(name, properties = {})
29
- @env[:server] = {name: name}.merge(properties)
30
- end
31
-
32
28
  def method_missing(name, *args, &block)
33
29
  if caller.join.include? 'load_env'
34
30
  # do nothing
data/lib/sunzi/cli.rb CHANGED
@@ -94,11 +94,11 @@ module Sunzi
94
94
  cap = Capistrano.load_env(@stage)
95
95
  if options.sudo?
96
96
  @sudo = 'sudo '
97
- @user = cap[:sys_admin]
97
+ @user = cap[:admin_name]
98
98
  else
99
- @user = cap[:server][:user]
99
+ @user = cap[:deployer_name]
100
100
  end
101
- @host = cap[:server][:name]
101
+ @host = cap[:server]
102
102
  @port = cap[:port]
103
103
 
104
104
  @config = YAML.load(File.read(based("sunzi.yml")))
data/lib/sunzi/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Sunzi
2
- VERSION = "0.2.13"
2
+ VERSION = "0.2.14"
3
3
  RUBY_VERSION = IO.read("#{File.dirname(__FILE__)}/../../.ruby-version").strip
4
4
  RAILS_VERSION = "4.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sunzi-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.13
4
+ version: 0.2.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kenn Ejima