mattmatt-cap-ext-webistrano 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README +12 -0
  2. data/VERSION.yml +1 -1
  3. data/lib/cap_ext_webistrano.rb +0 -2
  4. metadata +1 -1
data/README CHANGED
@@ -1,6 +1,11 @@
1
1
  A drop-n replacement for Capistrano so you can run tasks in Webistrano from
2
2
  your command line just using the cap command.
3
3
 
4
+ Installation
5
+ ============
6
+
7
+ gem install mattmatt-cap-ext-webistrano
8
+
4
9
  Usage
5
10
  =====
6
11
 
@@ -9,6 +14,7 @@ Capistrano.
9
14
 
10
15
  In your Capfile, insert the following lines at the end.
11
16
 
17
+ gem 'mattmatt-cap-ext-webistrano'
12
18
  require 'cap_ext_webistrano'
13
19
 
14
20
  The Webistrano extensions require a couple of configuration options that you
@@ -21,6 +27,12 @@ set :password, "admin"
21
27
  set :stage, "test" # specify the stage you want to deploy
22
28
  set :webistrano_home, "http://webistrano.mydomain.com/"
23
29
 
30
+ If you only have one stage in your project this should do, however with
31
+ several stages it'd be better to ask for the stage to be deployed:
32
+
33
+ set :stage do
34
+ Capistrano::CLI.ui.ask "Specify the stage to deploy: "
35
+ end
24
36
 
25
37
  (c) 2009 Mathias Meyer
26
38
 
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :minor: 0
3
- :patch: 3
3
+ :patch: 4
4
4
  :major: 0
@@ -27,14 +27,12 @@ Capistrano::Configuration::Execution.class_eval do
27
27
  alias :original_find_and_execute_task :find_and_execute_task
28
28
 
29
29
  def hijack_capistrano
30
- puts "Hijacking Capistrano for fun, profit, and Webistrano"
31
30
  @hijack_runner = lambda { CapExtWebistrano::Task.new(current_task.fully_qualified_name, self).run }
32
31
  tasks.each {|tsk| tsk.last.instance_variable_set(:@body, @hijack_runner)}
33
32
  namespaces.each {|nmspace| nmspace.last.tasks.each {|tsk| tsk.last.instance_variable_set(:@body, @hijack_runner)}}
34
33
  end
35
34
 
36
35
  def find_and_execute_task(task, hooks = {})
37
- puts 'hello'
38
36
  hijack_capistrano
39
37
  @callbacks = {}
40
38
  original_find_and_execute_task(task, {})
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mattmatt-cap-ext-webistrano
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mathias Meyer