luban 0.3.0 → 0.3.1

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: db4f45e199a07e299a540fde6da20ebc35ed9c55
4
- data.tar.gz: a90ba102ab2eba5b2b11eadd4a4373f18eebdd8e
3
+ metadata.gz: 4d2d7c1be97fb9cf2fc1fd7b6d9db26bb85f1d5e
4
+ data.tar.gz: 189785ad7216bc3b479367107cfb72558b145d39
5
5
  SHA512:
6
- metadata.gz: beddaa95f8d175de1e33447f14b8eddb8ac7dc49744a39e17da918422364a14749585a1fa74959f46f53f237d25f27a34c7bece75be88f454e9101b2d36d809f
7
- data.tar.gz: 3b337963512a401009e2500ba0f94e6277b2b3b4dac45e5201fa185cc2e46f2c7e2ad8ec208e4a4efca56d574753252bd7ea35400b6f7095fb6405b942be9cb2
6
+ metadata.gz: 10d556df4b058dad5e8cd1d34621b91002bf8c20a4d17bd46d0a335e6297a3efb0e05c349f261c077c64d6c1e72c2102adcc8404506dc27f726eeea428d87ebc
7
+ data.tar.gz: a6e754751cb5ec88079023dae75fcec494fd2d8162729c005cb0aad5f9e86c503ab7f7848a3ae6baf5327273df80bad413c68701a10d2c8393058c08517bda95
data/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # Change log
2
2
 
3
+ ## Version 0.3.1 (Apr 13, 2016)
4
+
5
+ Minor enhancements:
6
+ * Add SSH auth method "password" in addition to "keyboard-interactive"
7
+ * Removed support for production stages
8
+
9
+ Bug fixes:
10
+ * Ensured pakcage tmp path is created during bootstrapping
11
+ * Built package without setting up build environment varaibles which are problematic
12
+ * Checked third-party package download correctly with MD5
13
+
3
14
  ## Version 0.3.0 (Apr 12, 2016)
4
15
 
5
16
  Minor enhancements:
@@ -80,7 +80,7 @@ module Luban
80
80
  def setup_password_authen
81
81
  host.user, host.password = user, nil if host.user.nil?
82
82
  host.password = app.password_for(host.user) if host.password.nil?
83
- host.ssh_options[:auth_methods] = %w(keyboard-interactive)
83
+ host.ssh_options[:auth_methods] = %w(keyboard-interactive password)
84
84
  end
85
85
 
86
86
  def add_authorized_keys
@@ -218,9 +218,8 @@ module Luban
218
218
 
219
219
  def set_parameters
220
220
  copy_parameters_from_parent(
221
- :luban_roles, :luban_root_path,
222
- :stages, :production_stages, :applications,
223
- :work_dir, :apps_path, :user
221
+ :luban_roles, :luban_root_path, :user,
222
+ :stages, :applications, :work_dir, :apps_path
224
223
  )
225
224
  end
226
225
 
@@ -25,7 +25,7 @@ module Luban
25
25
  end
26
26
 
27
27
  def cached?
28
- file?(src_cache_path)
28
+ md5_matched?(src_cache_path, src_file_md5)
29
29
  end
30
30
 
31
31
  def validate_download_url
@@ -210,11 +210,11 @@ module Luban
210
210
  def install!
211
211
  upload_package
212
212
  uncompress_package
213
- assure_dirs(build_path)
214
213
  within build_path do
215
- with compose_build_env_variables do
216
- build_package
217
- end
214
+ #with compose_build_env_variables do
215
+ # build_package
216
+ #end
217
+ build_package
218
218
  end
219
219
  cleanup_build!
220
220
  end
@@ -288,7 +288,8 @@ module Luban
288
288
  end
289
289
 
290
290
  def bootstrap_install
291
- assure_dirs(etc_path, tmp_path, app_bin_path, install_path, install_log_path)
291
+ assure_dirs(etc_path, tmp_path, app_bin_path,
292
+ package_tmp_path, install_path, install_log_path)
292
293
  end
293
294
 
294
295
  def download_package!
@@ -300,7 +301,7 @@ module Luban
300
301
 
301
302
  def upload_package
302
303
  info "Uploading #{package_full_name} source package"
303
- if file?(src_cache_path)
304
+ if cached?
304
305
  info "#{package_full_name} is uploaded ALREADY"
305
306
  else
306
307
  upload_package!
@@ -1,5 +1,3 @@
1
- require "digest/md5"
2
-
3
1
  module Luban
4
2
  module Deployment
5
3
  module Helpers
@@ -24,7 +24,6 @@ module Luban
24
24
  parameter :luban_root_path
25
25
 
26
26
  parameter :stages
27
- parameter :production_stages
28
27
  parameter :applications
29
28
 
30
29
  parameter :work_dir
@@ -33,10 +32,6 @@ module Luban
33
32
  parameter :user
34
33
  parameter :config_finder
35
34
 
36
- def production_stage?(stage)
37
- production_stages.include?(stage)
38
- end
39
-
40
35
  protected
41
36
 
42
37
  def set_default_general_parameters
@@ -10,8 +10,7 @@ module Luban
10
10
  def default_rc
11
11
  @default_rc ||= { 'luban_roles' => %i(app),
12
12
  'luban_root_path' => Parameters::General::DefaultLubanRootPath,
13
- 'stages' => %w(development staging production),
14
- 'production_stages' => %w(production)
13
+ 'stages' => %w(development staging production)
15
14
  }
16
15
  end
17
16
 
@@ -33,8 +32,7 @@ module Luban
33
32
  end
34
33
 
35
34
  def set_default_parameters
36
- %i(luban_roles luban_root_path
37
- stages production_stages).each { |p| set_default p, rc[p.to_s] }
35
+ %i(luban_roles luban_root_path stages).each { |p| set_default p, rc[p.to_s] }
38
36
 
39
37
  set_default :applications, find_applications
40
38
  set_default :project, File.basename(work_dir)
@@ -1,5 +1,5 @@
1
1
  module Luban
2
2
  module Deployment
3
- VERSION = "0.3.0"
3
+ VERSION = "0.3.1"
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.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rubyist Lei