bonethug 0.0.18 → 0.0.20

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -23,7 +23,7 @@ Usage
23
23
 
24
24
 
25
25
 
26
- ### Commands
26
+ ### Local Commands
27
27
 
28
28
 
29
29
 
@@ -35,16 +35,54 @@ Usage
35
35
 
36
36
  **Add bonethug to an existing project **
37
37
 
38
- if you just want to use the deploy / cron / backup framework
38
+ *If you just want to use the deploy / cron / backup framework*
39
39
 
40
40
  `bonethug init`
41
41
 
42
42
 
43
43
 
44
- **update the bonethug files in an existing project**
44
+ **Update the bonethug files in an existing project**
45
45
 
46
- `bonethug update`
47
-
46
+ *This updates the .bonethug/deploy.rb, .bonethug/backup.rb,
47
+ config/example/cnf.yml, config/example/schedule.rb config files*
48
+
49
+ `bonethug update`
50
+
51
+
52
+
53
+ **Watch for changes to SCSS / CoffeeScript**
54
+
55
+ *Configure the watch in the config/cnf.yml. Uses sprockets by default, but can
56
+ use vanilla coffeescript and sass compilers if you pass it the coffee_sass
57
+ argument*
58
+
59
+ `bonethug watch [coffee_sass]`
60
+
61
+
62
+
63
+ ### Remote Commands
64
+
65
+ For these commands to work you need to have the desired host already added to
66
+ your known hosts file: ~/.ssh/known_hosts which means you can either connect to
67
+ the host first, manually add it or switch off the checking by adding the
68
+ following to ~/.ssh/config.
69
+
70
+
71
+
72
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
73
+ Host *
74
+ StrictHostKeyChecking no
75
+ UserKnownHostsFile=/dev/null
76
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
77
+
78
+
79
+
80
+ **Setup and Deploy to Remote Server**
81
+
82
+ *This wraps mina and deploys using the information contained in cnf.yml*
83
+
84
+ `bonethug setup {develoment|staging|production}`
85
+ `bonethug deploy {develoment|staging|production}`
48
86
 
49
87
 
50
88
  Contributing
data/config/deploy.rb CHANGED
@@ -120,7 +120,7 @@ end
120
120
 
121
121
  desc "Restores application state to the most recent backup"
122
122
  task :backup => :environment do
123
- queue! %[cd #{deploy_to}/current && export to=#{env} && bundle exec astrails-safe .bonethug/backup.rb] if deploy.get('project_type') == 'rails'
123
+ queue! %[cd #{deploy_to}/current && export to=#{env} && bundle exec astrails-safe .bonethug/backup.rb]
124
124
  end
125
125
 
126
126
  desc "Restores application state to the most recent backup"
@@ -221,7 +221,7 @@ task :deploy => :environment do
221
221
  # set appropriate permissions on the resource dirs - if they just need read / write - should prob be 0666
222
222
  resources.each do |path|
223
223
  queue! %[chown -R www-data:www-data "#{deploy_to}/shared/#{path}"]
224
- queue! %[chmod -R 0776 "#{deploy_to}/shared/#{path}"]
224
+ queue! %[chmod -R 0775 "#{deploy_to}/shared/#{path}"]
225
225
  end
226
226
 
227
227
  # apply defined permissions
@@ -234,7 +234,7 @@ module Bonethug
234
234
  required_gems.each do |gem_name, github|
235
235
 
236
236
  add_gem = false;
237
- gem_reg = Regexp.new('gem ["\']'+gem_name+'["\']')
237
+ gem_reg = Regexp.new('gem[^"\']+["\']'+gem_name+'["\']')
238
238
  git_reg = Regexp.new('gem[^"\']+["\']'+gem_name+'["\'],[^,]+github: ["\']'+github+'["\'],') if github
239
239
 
240
240
  if gem_reg =~ gemfile_contents
@@ -1,3 +1,3 @@
1
1
  module Bonethug
2
- VERSION = "0.0.18"
2
+ VERSION = "0.0.20"
3
3
  end
@@ -85,13 +85,13 @@ module Bonethug
85
85
  when 'sass_coffee', 'coffee_sass'
86
86
  if watch[:type] == :coffee
87
87
  guardfile_content += "
88
- guard :coffee, :minify => true, :output => '#{watch[:dest]}', :input => #{watch[:src].to_s} do
88
+ guard :coffeescript, :minify => true, :output => '#{watch[:dest]}', :input => #{watch[:src].to_s} do
89
89
  #{filter}
90
90
  end
91
91
  "
92
92
  elsif watch[:type] == :sass
93
93
  guardfile_content += "
94
- guard :sass, :minify => true, :output => '#{watch[:dest]}', :input => #{watch[:src].to_s} do
94
+ guard :sass, :style => :compressed, :debug_info => true, :output => '#{watch[:dest]}', :input => #{watch[:src].to_s} do
95
95
  #{filter}
96
96
  end
97
97
  "
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bonethug
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.18
4
+ version: 0.0.20
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-29 00:00:00.000000000 Z
12
+ date: 2013-09-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler