nodex 0.0.9 → 0.1.0

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.
@@ -0,0 +1,11 @@
1
+ require 'nodex/helper'
2
+ require 'nodex/dsl'
3
+ require 'nodex/deploy'
4
+
5
+ module Nodex
6
+ class Railtie < ::Rails::Railtie
7
+ rake_tasks do
8
+ load 'tasks/nodex.rake'
9
+ end
10
+ end
11
+ end if defined?(Rails) and Rails::VERSION::MAJOR == 3
@@ -18,7 +18,7 @@ module Nodex
18
18
  end
19
19
 
20
20
  def log(command)
21
- puts "Inploy => #{command}"
21
+ puts "Nodex => #{command}"
22
22
  end
23
23
 
24
24
  def run(command)
@@ -1,7 +1,7 @@
1
1
  module Nodex
2
2
  module Helper
3
3
  def configuration_file
4
- File.open("config/deploy.rb") rescue File.open("deploy.rb") rescue nil
4
+ File.open("config/nodex.rb") rescue File.open("nodex.rb") rescue nil
5
5
  end
6
6
 
7
7
  def skip_step?(step)
@@ -1,3 +1,3 @@
1
1
  module Nodex
2
- VERSION = "0.0.9"
2
+ VERSION = "0.1.0"
3
3
  end
@@ -0,0 +1,15 @@
1
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..'))
2
+ require 'nodex'
3
+
4
+ deploy = Nodex::Deploy.new
5
+
6
+ deploy.environment = ENV['environment'] || deploy.environment
7
+ deploy.skip_steps = ENV['skip_steps'].split(',') unless ENV['skip_steps'].nil?
8
+
9
+ namespace :nodex do
10
+
11
+ end
12
+
13
+ namespace :in do
14
+
15
+ end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: nodex
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.9
5
+ version: 0.1.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - Bruno S. Barros
@@ -39,6 +39,7 @@ files:
39
39
  - README.textile
40
40
  - Rakefile
41
41
  - bin/nodex
42
+ - lib/nodex.rb
42
43
  - lib/nodex/cli.rb
43
44
  - lib/nodex/deploy.rb
44
45
  - lib/nodex/dsl.rb
@@ -48,6 +49,7 @@ files:
48
49
  - lib/nodex/servers/thin.rb
49
50
  - lib/nodex/servers/unicorn.rb
50
51
  - lib/nodex/version.rb
52
+ - lib/tasks/nodex.rake
51
53
  - nodex.gemspec
52
54
  has_rdoc: true
53
55
  homepage: http://bkether.blogspot.com