deployments 0.1.10 → 0.1.11

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/Guardfile CHANGED
@@ -1,7 +1,7 @@
1
- guard 'rspec', :cli => '--format documentation', :version => 2, :all_after_pass => false, :all_on_start => false, :keep_failed => false do
1
+ guard 'rspec', :cli => '--format documentation', :version => 2, :all_after_pass => false, :keep_failed => false do
2
2
  watch(%r{^spec/.+_spec\.rb$})
3
3
  watch(%r{^spec/.+\.rb$})
4
- watch(%r{^lib/(.+)\.rb$}) { "spec" }
5
- watch(%r{^lib/messaging_app/(.+)\.rb$}) { "spec" }
6
- watch('spec/spec_helper.rb') { "spec" }
4
+ watch(%r{^lib/(.+)\.rb$}) { "spec" }
5
+ watch(%r{^lib/deployments/(.+)\.rb$}) { "spec" }
6
+ watch('spec/spec_helper.rb') { "spec" }
7
7
  end
data/README.md CHANGED
@@ -18,10 +18,11 @@ Or install it yourself as:
18
18
 
19
19
  ## Usage
20
20
 
21
- If you are using Rails 2 version you should add load method to your Rakefile:
21
+ If you are using Rails 2 or non Rails gem you should add the next following
22
+ code into Rakefile:
22
23
 
23
24
  ```ruby
24
- load "#{Gem.searcher.find('deployments').full_gem_path}/lib/tasks/deployments.rake"
25
+ require 'deployments/gem_tasks'
25
26
  ```
26
27
 
27
28
  At first you need to create in the config folder deployments.yml file with
data/Rakefile CHANGED
@@ -1,2 +1,7 @@
1
1
  #!/usr/bin/env rake
2
2
  require "bundler/gem_tasks"
3
+
4
+ task :default do
5
+ system 'bundle exec rspec'
6
+ end
7
+
@@ -0,0 +1,30 @@
1
+ require 'rake'
2
+
3
+ module Deployments
4
+ class GemTasks
5
+ include Rake::DSL if defined?(Rake::DSL)
6
+
7
+ def self.install_tasks
8
+ namespace :deployments do
9
+ desc "Push deployments details to the server"
10
+ task :push do
11
+ require 'deployments'
12
+
13
+ include Deployments
14
+
15
+ project = Project.new('./')
16
+ build = Build.new(ENV['app_env'], project)
17
+
18
+ dispatcher = Dispatcher.new(build)
19
+ dispatcher.run
20
+
21
+ public_version = PublicVersion.new(project)
22
+ public_version.generate
23
+ end
24
+ end
25
+ end
26
+ end
27
+ end
28
+
29
+ Deployments::GemTasks.install_tasks
30
+
@@ -1,3 +1,3 @@
1
1
  module Deployments
2
- VERSION = "0.1.10"
2
+ VERSION = "0.1.11"
3
3
  end
@@ -1,22 +1 @@
1
- require 'rake'
2
-
3
- include Rake::DSL if defined?(Rake::DSL)
4
-
5
- namespace :deployments do
6
- desc "Push deployments details to the server"
7
- task :push do
8
- require 'deployments'
9
-
10
- include Deployments
11
-
12
- project = Project.new('./')
13
- build = Build.new(ENV['app_env'], project)
14
-
15
- dispatcher = Dispatcher.new(build)
16
- dispatcher.run
17
-
18
- public_version = PublicVersion.new(project)
19
- public_version.generate
20
- end
21
- end
22
-
1
+ require 'deployments/gem_tasks'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deployments
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.1.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-27 00:00:00.000000000 Z
12
+ date: 2012-07-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: curb
@@ -112,6 +112,7 @@ files:
112
112
  - lib/deployments.rb
113
113
  - lib/deployments/build.rb
114
114
  - lib/deployments/dispatcher.rb
115
+ - lib/deployments/gem_tasks.rb
115
116
  - lib/deployments/project.rb
116
117
  - lib/deployments/public_version.rb
117
118
  - lib/deployments/railtie.rb