lobstr 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/bin/lob CHANGED
@@ -84,7 +84,6 @@ rescue Thor::UndefinedTaskError => e
84
84
  Lob.new.say e.message, :red
85
85
  end
86
86
  rescue => e
87
- p e
88
- p e.backtrace.last
87
+ p e.inspect
89
88
  Lob.new.say e.message, :on_red
90
89
  end
@@ -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
 
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Lobstr
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -30,4 +30,5 @@ Gem::Specification.new do |gem|
30
30
  gem.add_development_dependency('turn', '~> 0.9')
31
31
  gem.add_development_dependency('pry', '~> 0.9')
32
32
  gem.add_development_dependency('mocha', '~> 0.12')
33
+ gem.add_development_dependency('gem-release', '~> 0.4')
33
34
  end
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.1
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