avodeploy 0.4.1 → 0.4.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 35c82df62a686a9bb6e446bb38a53f862e52e563
4
- data.tar.gz: 86b4cd123a894fa73837bc191d7f97635ccebc68
3
+ metadata.gz: 9eb2622171b0f1c3e6a7aa3fd51eefc83d78081f
4
+ data.tar.gz: 55218f0f1f3280d66e6f948d9b63b85e2a094512
5
5
  SHA512:
6
- metadata.gz: 0c919f8c31d1787f4c77ecd9a01afda0d0cd8e8f139874d62cd3fa6af6d2ffb842e619cacbee5b1fed06877a0ddbe975dda333257ac7eb3a9d0ada2773b58464
7
- data.tar.gz: 84bacc8363fdb08d6acb6a9477923315cdcce8d994dfbf91e09a8d0a3542afa01c9b4d34e652ea6a8ddb71215baace5ea9fd473270a28a2fe93e63a5ec02c232
6
+ metadata.gz: 1b5eda736217651f0407572840b49ffac53efb969681dfca8b56e52035f1b07e30b459f72af25325bc7949dd039231cd0feaf16fdb598844c4e42cdbc6cea747
7
+ data.tar.gz: 82394f84a81e5798e76d799d739e8d494b17b85eb7e34c8278e1aa395a55d22e91f9b5ec8cae3f34f0329b5bcdcc8173785a2c75810032fb54f08f74948ccc41
data/.travis.yml ADDED
@@ -0,0 +1,10 @@
1
+ language: ruby
2
+ rvm:
3
+ - "2.1.1"
4
+ - "2.0.0"
5
+ - "1.9.3"
6
+ before_install:
7
+ - gem update --system
8
+ - gem --version
9
+ # uncomment this line if your project needs to run something other than `rake`:
10
+ # script: bundle exec rspec spec
data/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ 0.4.2
2
+ * Bugfix: Avocado cannot resolve defined stages
3
+
1
4
  0.4.1
2
5
  * local_copy strategy now checks, if one or more target systems are specified
3
6
  * avo now raises an error if no valid stage is selected (avo [stage] deploy does not complain if the stage does not exist #7)
@@ -11,4 +14,4 @@
11
14
  * Removed awesome_print dependency
12
15
  * Remote code execution: target name will now be displayed
13
16
  * local_copy strategy: `Avofile` is now excluded by default
14
- * Tasks: Default directory is now the working copy (Task usability - chdir #5)
17
+ * Tasks: Default directory is now the working copy (Task usability - chdir #5)
data/README.md CHANGED
@@ -1,7 +1,9 @@
1
+ develop: ![](https://travis-ci.org/dprandzioch/avocado.svg?branch=develop) | master: ![](https://travis-ci.org/dprandzioch/avocado.svg?branch=develop)
2
+
1
3
  ### Avocado
2
4
  Avocado is a deployment framework for web applications written in Ruby.
3
5
 
4
- The current release is 0.4.1.
6
+ The current release is 0.4.2.
5
7
 
6
8
  ### Licensing
7
9
  Avocado is licensed under the GPLv2. For more Information have a look into the LICENSE file.
@@ -53,11 +53,6 @@ module AvoDeploy
53
53
  # error not neccessary because dependencies are not loaded
54
54
  end
55
55
 
56
- # requested stage was not found
57
- if instance.config.loaded_stage.nil?
58
- raise ArgumentError, 'The requested stage does not exist.'
59
- end
60
-
61
56
  if debug
62
57
  instance.log.level = Logger::DEBUG
63
58
  elsif verbose
@@ -77,6 +72,11 @@ module AvoDeploy
77
72
 
78
73
  # override again by user config to allow manipulation of tasks
79
74
  load File.join(Dir.pwd, 'Avofile')
75
+
76
+ # requested stage was not found
77
+ if instance.config.loaded_stage.nil?
78
+ raise ArgumentError, 'The requested stage does not exist.'
79
+ end
80
80
  rescue Exception => e
81
81
  if debug
82
82
  raise e
@@ -65,14 +65,16 @@ module AvoDeploy
65
65
  # @param options [Hash] stage options
66
66
  # @param block [Block] the stage configuration
67
67
  def setup_stage(name, options = {}, &block)
68
+ stages[name] = ''
69
+
68
70
  if options.has_key?(:desc)
69
- stages[name] = options[:desc]
71
+ stages[name] = options[:desc]
70
72
  end
71
73
 
72
- if name == get(:stage)
73
- instance_eval(&block)
74
-
74
+ if name.to_s == get(:stage).to_s
75
75
  @loaded_stage = name
76
+
77
+ instance_eval(&block)
76
78
  end
77
79
  end
78
80
 
@@ -17,5 +17,5 @@
17
17
  =end
18
18
 
19
19
  module AvoDeploy
20
- VERSION = "0.4.1"
20
+ VERSION = "0.4.2"
21
21
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: avodeploy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Prandzioch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-13 00:00:00.000000000 Z
11
+ date: 2014-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -102,6 +102,7 @@ executables:
102
102
  extensions: []
103
103
  extra_rdoc_files: []
104
104
  files:
105
+ - .travis.yml
105
106
  - CHANGELOG
106
107
  - Gemfile
107
108
  - LICENSE