lobstr 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/bin/lob +1 -2
- data/lib/lobstr/base.rb +3 -2
- data/lib/lobstr/deploy.rb +2 -0
- data/lib/lobstr/version.rb +1 -1
- data/lobstr.gemspec +1 -0
- metadata +17 -1
data/bin/lob
CHANGED
data/lib/lobstr/base.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'minitest/mock'
|
2
2
|
module Lobstr
|
3
3
|
class Base
|
4
|
-
attr_accessor :branch, :environment, :config, :ssh
|
4
|
+
attr_accessor :app, :branch, :environment, :config, :ssh
|
5
5
|
def parse_target(target)
|
6
6
|
branch,environment = target.split('@', 2)
|
7
7
|
|
@@ -18,7 +18,8 @@ module Lobstr
|
|
18
18
|
def connect(&block)
|
19
19
|
@ssh = ::Net::SSH.start(@config['ssh_host'],
|
20
20
|
@config['ssh_user'],
|
21
|
-
:keys => [@config['ssh_key']]
|
21
|
+
:keys => [@config['ssh_key']],
|
22
|
+
:auth_methods => %w{ publickey })
|
22
23
|
instance_eval(&block) if block_given?
|
23
24
|
end
|
24
25
|
|
data/lib/lobstr/deploy.rb
CHANGED
@@ -3,6 +3,7 @@ module Lobstr
|
|
3
3
|
def initialize(target, config_file = 'config/lobstr.yml', &block)
|
4
4
|
@branch,@environment = parse_target(target)
|
5
5
|
@config = Lobstr::Config.new(config_file).parse(@environment)
|
6
|
+
@app = @config['app']
|
6
7
|
if block_given?
|
7
8
|
return instance_eval(&block)
|
8
9
|
else
|
@@ -14,6 +15,7 @@ module Lobstr
|
|
14
15
|
connect do
|
15
16
|
update
|
16
17
|
bundle_install
|
18
|
+
restart true
|
17
19
|
notify
|
18
20
|
end
|
19
21
|
end
|
data/lib/lobstr/version.rb
CHANGED
data/lobstr.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lobstr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -171,6 +171,22 @@ dependencies:
|
|
171
171
|
- - ~>
|
172
172
|
- !ruby/object:Gem::Version
|
173
173
|
version: '0.12'
|
174
|
+
- !ruby/object:Gem::Dependency
|
175
|
+
name: gem-release
|
176
|
+
requirement: !ruby/object:Gem::Requirement
|
177
|
+
none: false
|
178
|
+
requirements:
|
179
|
+
- - ~>
|
180
|
+
- !ruby/object:Gem::Version
|
181
|
+
version: '0.4'
|
182
|
+
type: :development
|
183
|
+
prerelease: false
|
184
|
+
version_requirements: !ruby/object:Gem::Requirement
|
185
|
+
none: false
|
186
|
+
requirements:
|
187
|
+
- - ~>
|
188
|
+
- !ruby/object:Gem::Version
|
189
|
+
version: '0.4'
|
174
190
|
description: deployments so easy, even a zoidberg can do it
|
175
191
|
email:
|
176
192
|
- eric@xentek.net
|