bam 0.0.6 → 0.0.7

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.mdown +37 -4
  2. data/bin/bamify +6 -1
  3. data/lib/bam/version.rb +1 -1
  4. metadata +3 -3
data/README.mdown CHANGED
@@ -1,7 +1,7 @@
1
1
  Bam
2
2
  ===
3
3
 
4
- A super simple deployment utility, it's basically an opinionated abstraction of rsync served in a capistrano fashion. Capistrano is a super cool utility, I love it, I use it all the time. But for smaller projects (websites, sinatra apps, etc), I think it's simply overkill. With a combination of rsync and git (well actually not really, bam simply allows git to do what git does best... version management).
4
+ A super simple deployment utility, it's basically an opinionated abstraction of rsync served in a capistrano fashion. Capistrano is a super cool utility, I love it, I use it all the time. But for smaller projects (websites, sinatra apps, etc), I think it's simply overkill. The great thing about bam is that you don't need to learn another DSL, it's simply just ruby that you need to edit in the deploy file to configure your deployment recipe.
5
5
 
6
6
  Installation
7
7
  ============
@@ -16,12 +16,45 @@ Usage
16
16
  # update the @server and @to variables in deploy.bam file
17
17
  # work on your project
18
18
  bam
19
+
20
+ How deploy.bam works
21
+ ====================
22
+
23
+ After you run <code>bamify</code>, it generates a <code>deploy.bam</code> file, which looks like:
24
+
25
+ # Bam Deploy File
26
+ # ---------------
27
+ # All you have to do is change all the variables below...
28
+ # the ip or hostname of the server, can use the following conventions for this variable:
29
+ # - server_name # => if you have server_name setup in ~/.ssh/config
30
+ # - username@host
31
+ @server = 'login@yourhost.com'
32
+ # the location on the server don't forget to append the slash/
33
+ @to = '~/location/to/your/web/site/or/app/'
34
+
35
+ # pre_deploy_tasks : These are things that you can run locally before deployment
36
+ # @pre_deploy_tasks = ['rm -rf cache/*']
37
+ # @pre_deploy_tasks = []
38
+
39
+ # post_deploy_tasks : These are things that you can run locally before deployment
40
+ # @post_deploy_tasks = ['rm -rf cache/*']
41
+ # @post_deploy_tasks = []
42
+
43
+ Simply set <code>@server</code> to your hostname or ip of your server and set <code>@to</code> to the location
44
+ on the server where the your project is located, make sure that it's the parent folder (and don't forget to
45
+ append the slash '/'), so instead of <code>~/public_html/project_name/</code> you would do <code>~/public_html/</code>
46
+
47
+ Pre and Post Deployment Tasks
48
+ =============================
49
+
50
+ You can run pre and post deployment tasks by assigning or setting the @pre_deploy_tasks or @post_deploy_tasks variables. For now, you can only run tasks locally, but remember since it's just a ruby file, you can require in Net::SSH and write your own methods to run remote tasks, if it comes down to it, I might just write in that ability myself... we'll see, otherwise feel free to fork it and add it yourself :)
19
51
 
20
52
  TODO
21
53
  ====
22
54
 
23
- - Add revision history
24
-
55
+ - Add static revision history for integrated rollbacks
56
+ - Maybe use choice or highline to prompt to fill in values?
57
+ - Maybe add in remote tasks
25
58
 
26
- Copyright (c) 2010 Vann Ek., released under the MIT license
27
59
 
60
+ Copyright (c) 2010 Vann Ek., released under the MIT license
data/bin/bamify CHANGED
@@ -22,6 +22,12 @@ def template
22
22
  # - username@host
23
23
  @server = 'login@yourhost.com'
24
24
  # the location on the server don't forget to append the slash/
25
+ # make sure that it's the parent folder that you are uploading to,
26
+ # for example:
27
+ # instead of...
28
+ # @to = '~/public_html/your_site/'
29
+ # do...
30
+ # @to = '~/public_html/'
25
31
  @to = '~/location/to/your/web/site/or/app/'
26
32
 
27
33
  # pre_deploy_tasks : These are things that you can run locally before deployment
@@ -52,4 +58,3 @@ else
52
58
  puts wrap_borders("Bam! you're done! bam.deploy generated to : #{bam_path}")
53
59
  # TODO : add editor options
54
60
  end
55
-
data/lib/bam/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Bam
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bam
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 6
10
- version: 0.0.6
9
+ - 7
10
+ version: 0.0.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Vann Ek