pulsar 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -38,7 +38,7 @@ $ pulsar-utils init ~/Desktop/pulsar-conf
38
38
  This will create a basic start point for building your configuration repository. As soon as you're done configuring
39
39
  you should consider storing this folder as an actual git repository.
40
40
 
41
- Here it is possible to see how this configuration repository will look like: [Pulsar Conf Demo](http://github.com/nebulab/pulsar-conf-demo)
41
+ Here it is possible to see how this configuration repository will look like: [Pulsar Conf Demo](http://github.com/nebulab/pulsar-conf-demo)
42
42
 
43
43
  **NOTE**: Pulsar only supports git and *nix systems.
44
44
 
@@ -133,7 +133,7 @@ end
133
133
 
134
134
  You can specify some recipes to be loaded only when you run Pulsar from inside a Rack application directory.
135
135
  This is useful with recipes that require something inside that directory (like retrieving the database/assets
136
- from a staging environment).
136
+ from a staging environment).
137
137
 
138
138
  You can do that like this:
139
139
 
@@ -143,7 +143,7 @@ You can do that like this:
143
143
  #
144
144
 
145
145
  #
146
- # These recipes will be available only if you're running
146
+ # These recipes will be available only if you're running
147
147
  # Pulsar inside a Rack application (like Rails) directory
148
148
  #
149
149
  load_recipes(app_only: true) do
@@ -156,8 +156,9 @@ end
156
156
  Once the repository is ready, you'll need to tell Pulsar where it is. The repository location can be specified either
157
157
  as a full git path or a github repository path (`gh-user/pulsar-conf`).
158
158
 
159
- Since Pulsar requires the repository for everything, there are multiple ways to store this information so that
160
- you don't have to type it everytime.
159
+ Since Pulsar requires the repository for everything, there are multiple ways to store this information so that
160
+ you don't have to type it everytime. You can also use local repository, which is useful while developing your
161
+ deployment.
161
162
 
162
163
  You have three possibilities:
163
164
 
@@ -171,7 +172,12 @@ The fastest way is probably the `.pulsar` hidden file inside your home directory
171
172
  #
172
173
  # Inside ~/.pulsar
173
174
  #
174
- PULSAR_CONF_REPO="gh-user/pulsar-conf"
175
+ PULSAR_CONF_REPO="gh-user/pulsar-conf"
176
+
177
+ #
178
+ # You can use local repository for development so you don't need to push changes every time
179
+ #
180
+ # PULSAR_CONF_REPO="/full/path/to/repository"
175
181
 
176
182
  #
177
183
  # Also supported
@@ -189,7 +195,7 @@ If you don't want to add another file to your home directory you can export the
189
195
  #
190
196
  # Inside ~/.bash_profile or ~/.zshrc
191
197
  #
192
- export PULSAR_CONF_REPO="gh-user/pulsar-conf"
198
+ export PULSAR_CONF_REPO="gh-user/pulsar-conf"
193
199
  ```
194
200
 
195
201
  ## Usage
@@ -210,7 +216,7 @@ $ pulsar my_application staging deploy:migrations
210
216
  $ pulsar my_application staging shell
211
217
 
212
218
  #
213
- # Deploy multiple apps by using commas
219
+ # Deploy multiple apps by using commas
214
220
  #
215
221
  $ pulsar my_app1,my_app2,my_app3 production
216
222
  ```
data/lib/pulsar.rb CHANGED
@@ -4,6 +4,7 @@ module Pulsar
4
4
  require "clamp"
5
5
  require "bundler"
6
6
  require "colored"
7
+ require "shellwords"
7
8
  require "pulsar/helpers/all"
8
9
  require "pulsar/options/all"
9
10
  require "pulsar/commands/all"
@@ -31,7 +31,7 @@ module Pulsar
31
31
  build_capfile(app, stage)
32
32
 
33
33
  unless skip_cap_run?
34
- cap_args = [ tasks_list ].flatten.join(" ")
34
+ cap_args = [ tasks_list ].flatten.shelljoin
35
35
  run_capistrano(cap_args)
36
36
  end
37
37
  ensure
@@ -61,11 +61,7 @@ module Pulsar
61
61
  end
62
62
 
63
63
  def fetch_directory_repo(repo)
64
- if File.directory?("#{repo}/.git")
65
- fetch_git_repo(repo, true)
66
- else
67
- run_cmd("cp -rp #{repo} #{config_path}", :verbose => verbose?)
68
- end
64
+ run_cmd("cp -rp #{repo} #{config_path}", :verbose => verbose?)
69
65
  end
70
66
 
71
67
  def fetch_git_repo(repo, local=false)
@@ -1,3 +1,3 @@
1
1
  module Pulsar
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  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.3.0
4
+ version: 0.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-07-23 00:00:00.000000000 Z
13
+ date: 2013-07-26 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: clamp
@@ -210,21 +210,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
210
210
  - - ! '>='
211
211
  - !ruby/object:Gem::Version
212
212
  version: '0'
213
- segments:
214
- - 0
215
- hash: 2226446731285894531
216
213
  required_rubygems_version: !ruby/object:Gem::Requirement
217
214
  none: false
218
215
  requirements:
219
216
  - - ! '>='
220
217
  - !ruby/object:Gem::Version
221
218
  version: '0'
222
- segments:
223
- - 0
224
- hash: 2226446731285894531
225
219
  requirements: []
226
220
  rubyforge_project:
227
- rubygems_version: 1.8.25
221
+ rubygems_version: 1.8.23
228
222
  signing_key:
229
223
  specification_version: 3
230
224
  summary: Pulsar helps with Capistrano configuration management. It uses a repository