cloudify 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module Cloudify
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -3,7 +3,7 @@ if ::Rails.version >= "3.1"
3
3
  module Cloudify
4
4
  class InstallGenerator < Rails::Generators::Base
5
5
  desc "This generator installs the files needed for Cloudify configuration"
6
- class_option :use_yml, :type => :boolean, :default => false, :desc => "Use YML file instead of Rails Initializer"
6
+
7
7
  source_root File.expand_path(File.join(File.dirname(__FILE__), '../templates'))
8
8
 
9
9
  def app_name
@@ -11,9 +11,7 @@ if ::Rails.version >= "3.1"
11
11
  end
12
12
 
13
13
  def generate_initializer
14
- unless options[:use_yml]
15
- template "cloudify.rb", "config/initializers/cloudify.rb"
16
- end
14
+ template "cloudify.rb", "config/initializers/cloudify.rb"
17
15
  end
18
16
  end
19
17
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -15,7 +15,7 @@ date: 2011-11-11 00:00:00.000000000Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rspec-rails
18
- requirement: &2153041920 !ruby/object:Gem::Requirement
18
+ requirement: &2156822440 !ruby/object:Gem::Requirement
19
19
  none: false
20
20
  requirements:
21
21
  - - =
@@ -23,10 +23,10 @@ dependencies:
23
23
  version: 2.7.0
24
24
  type: :development
25
25
  prerelease: false
26
- version_requirements: *2153041920
26
+ version_requirements: *2156822440
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: mocha
29
- requirement: &2153041260 !ruby/object:Gem::Requirement
29
+ requirement: &2156821440 !ruby/object:Gem::Requirement
30
30
  none: false
31
31
  requirements:
32
32
  - - =
@@ -34,10 +34,10 @@ dependencies:
34
34
  version: 0.10.0
35
35
  type: :development
36
36
  prerelease: false
37
- version_requirements: *2153041260
37
+ version_requirements: *2156821440
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: ruby-debug19
40
- requirement: &2153040740 !ruby/object:Gem::Requirement
40
+ requirement: &2156820940 !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
43
43
  - - ! '>='
@@ -45,10 +45,10 @@ dependencies:
45
45
  version: '0'
46
46
  type: :development
47
47
  prerelease: false
48
- version_requirements: *2153040740
48
+ version_requirements: *2156820940
49
49
  - !ruby/object:Gem::Dependency
50
50
  name: fog
51
- requirement: &2153039960 !ruby/object:Gem::Requirement
51
+ requirement: &2156820180 !ruby/object:Gem::Requirement
52
52
  none: false
53
53
  requirements:
54
54
  - - =
@@ -56,7 +56,7 @@ dependencies:
56
56
  version: 1.0.0
57
57
  type: :runtime
58
58
  prerelease: false
59
- version_requirements: *2153039960
59
+ version_requirements: *2156820180
60
60
  description: Sync your assets hosts to Amazon, Google & Rackspace services
61
61
  email:
62
62
  - amed@tractical.com
@@ -80,7 +80,6 @@ files:
80
80
  - lib/cloudify/storage.rb
81
81
  - lib/cloudify/version.rb
82
82
  - lib/generators/cloudify/install/install_generator.rb
83
- - lib/generators/cloudify/install_generator.rb
84
83
  - lib/generators/cloudify/templates/cloudify.rake
85
84
  - lib/generators/cloudify/templates/cloudify.rb
86
85
  - lib/tasks/deploy.rake
@@ -103,7 +102,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
103
102
  version: '0'
104
103
  segments:
105
104
  - 0
106
- hash: -91208309299467127
105
+ hash: -1781488561470966452
107
106
  required_rubygems_version: !ruby/object:Gem::Requirement
108
107
  none: false
109
108
  requirements:
@@ -112,7 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
112
111
  version: '0'
113
112
  segments:
114
113
  - 0
115
- hash: -91208309299467127
114
+ hash: -1781488561470966452
116
115
  requirements: []
117
116
  rubyforge_project: cloudify
118
117
  rubygems_version: 1.8.10
@@ -1,23 +0,0 @@
1
- require 'rails/generators'
2
- module Cloudify
3
- class InstallGenerator < Rails::Generators::Base
4
- desc "Install a config/cloudify.yml and the rake task enhancer"
5
-
6
- def self.source_root
7
- @source_root ||= File.join(File.dirname(__FILE__), 'templates')
8
- end
9
-
10
- def app_name
11
- @app_name ||= Rails.application.is_a?(Rails::Application) &&
12
- Rails.application.class.name.sub(/::Application$/, "").downcase
13
- end
14
-
15
- def generate_config
16
- template "cloudify.yml", "config/cloudify.yml"
17
- end
18
-
19
- def generate_rake_task
20
- template "cloudify.rake", "lib/tasks/cloudify.rake"
21
- end
22
- end
23
- end