pulsar 0.0.1.pre → 0.0.1.pre1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -12,11 +12,11 @@ deploy -c=<configuration-repo-git-url> <application> <stage> <capistrano_args>
12
12
  A couple of concrete examples:
13
13
 
14
14
  ```
15
- deploy -c=git@github.com:nebulab/deploy-configuration.git nebulab production --tasks
15
+ deploy -c git@github.com:nebulab/deploy-configuration.git nebulab production --tasks
16
16
 
17
- deploy -c=git@github.com:nebulab/deploy-configuration.git nebulab staging # Deploy on staging
17
+ deploy -c git@github.com:nebulab/deploy-configuration.git nebulab staging # Deploy on staging
18
18
 
19
- deploy -c=git@github.com:nebulab/deploy-configuration.git farmavillage production deploy:check
19
+ deploy -c git@github.com:nebulab/deploy-configuration.git farmavillage production deploy:check
20
20
  ```
21
21
 
22
22
  ## Installation
data/bin/pulsar CHANGED
@@ -3,14 +3,14 @@
3
3
  require 'pulsar'
4
4
 
5
5
  class PulsarCommand < Clamp::Command
6
- include Helpers::Clamp::Pulsar
6
+ include Pulsar::Helpers::Clamp
7
7
 
8
8
  option [ "-v", "--verbose" ], :flag,
9
9
  "Print out all the things!!!",
10
10
  :default => false
11
11
 
12
12
  option [ "-k", "--keep-capfile" ], :flag,
13
- "Dont't remove the generated capfile in the tmp/ directory.",
13
+ "Dont't remove the generated capfile in the /tmp/ directory.",
14
14
  :default => false
15
15
 
16
16
  option [ "-l", "--log-level" ], "LOG LEVEL",
@@ -1,10 +1,10 @@
1
- Dir['lib/helpers/clamp/**/*.rb'].each { |mod| require("./#{mod}") }
1
+ module Pulsar
2
+ module Helpers
3
+ module Capistrano
4
+ require "pulsar/helpers/clamp"
2
5
 
3
- module Helpers
4
- module Capistrano
5
- module RecipeLoader
6
6
  class DSL
7
- include Helpers::Clamp::Pulsar
7
+ include Pulsar::Helpers::Clamp
8
8
 
9
9
  def initialize(cap_conf, &dsl_code)
10
10
  @cap_conf = cap_conf
@@ -1,8 +1,8 @@
1
1
  require 'fileutils'
2
2
 
3
- module Helpers
4
- module Clamp
5
- module Pulsar
3
+ module Pulsar
4
+ module Helpers
5
+ module Clamp
6
6
  include FileUtils
7
7
 
8
8
  def build_capfile(args)
@@ -18,11 +18,11 @@ module Helpers
18
18
  end
19
19
 
20
20
  def capfile_path
21
- @capfile_name ||= "tmp/capfile-#{Time.now.strftime("%Y-%m-%d-%H%M%S")}"
21
+ @capfile_name ||= "/tmp/pulsar/capfile-#{Time.now.strftime("%Y-%m-%d-%H%M%S")}"
22
22
  end
23
23
 
24
24
  def config_path
25
- @configuration_path ||= "tmp/conf_repo"
25
+ @configuration_path ||= "/tmp/pulsar/conf_repo"
26
26
  end
27
27
 
28
28
  def create_capfile
File without changes
@@ -1,3 +1,3 @@
1
1
  module Pulsar
2
- VERSION = "0.0.1.pre"
2
+ VERSION = "0.0.1.pre1"
3
3
  end
data/lib/pulsar.rb CHANGED
@@ -1,7 +1,16 @@
1
1
  require "pulsar/version"
2
2
 
3
3
  module Pulsar
4
- require 'clamp'
5
-
6
- Dir['lib/helpers/clamp/**/*.rb'].each { |mod| require("./#{mod}") }
4
+ require "clamp"
5
+ require "pulsar/helpers/clamp"
6
+ require "pulsar/helpers/capistrano"
7
+
8
+ require "capistrano"
9
+ require "colored"
10
+ require "spinning_cursor"
11
+
12
+ # Capistrano recipes, to be moved to separate repo
13
+ require "airbrake"
14
+ require "whenever"
15
+ require "delayed_job"
7
16
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pulsar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.pre
4
+ version: 0.0.1.pre1
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -139,13 +139,12 @@ files:
139
139
  - README.md
140
140
  - Rakefile
141
141
  - bin/pulsar
142
- - lib/helpers/capistrano/recipe_loader.rb
143
- - lib/helpers/clamp/pulsar.rb
144
142
  - lib/pulsar.rb
143
+ - lib/pulsar/helpers/capistrano.rb
144
+ - lib/pulsar/helpers/clamp.rb
145
+ - lib/pulsar/tasks/.gitkeep
145
146
  - lib/pulsar/version.rb
146
- - lib/tasks/.gitkeep
147
147
  - pulsar.gemspec
148
- - tmp/.gitkeep
149
148
  homepage: https://github.com/nebulab/deploy
150
149
  licenses: []
151
150
  post_install_message:
data/tmp/.gitkeep DELETED
File without changes