vlad-helpers 0.0.3 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.3
1
+ 0.1.1
data/lib/vlad-helpers.rb CHANGED
@@ -1,10 +1,15 @@
1
1
  namespace :vlad do
2
- def require_site(site)
2
+ def check_usage(site)
3
3
  if (site.nil? || site.size == 0)
4
4
  puts "Usage: rake vlad:custom:setup[<domain-key>]\n e.g. rake vlad:custom:setup[www]"
5
5
  puts " rake vlad:deploy[<domain-key>]\n e.g. rake vlad:deploy[www]"
6
6
  exit(-1)
7
7
  end
8
+ end
9
+
10
+ def require_site(site)
11
+ check_usage(site)
12
+
8
13
  set :domain, @domain_map[site]
9
14
  set :rails_env, site
10
15
  end
@@ -29,9 +34,9 @@ namespace :vlad do
29
34
 
30
35
  remote_task :set_perms do
31
36
  begin
32
- run [ "sudo find #{deploy_to} -type f -exec chmod #{file_chmod_to} {} \\;",
33
- "sudo find #{deploy_to} -type d -exec chmod #{dir_chmod_to} {} \\;",
34
- "sudo chown -R #{chown_to} #{deploy_to}"].join(" && ")
37
+ run [ "sudo find #{release_path} -type f -exec chmod #{file_chmod_to} {} \\;",
38
+ "sudo find #{release_path} -type d -exec chmod #{dir_chmod_to} {} \\;",
39
+ "sudo chown -R #{chown_to} #{release_path}"].join(" && ")
35
40
  rescue => e
36
41
  raise e
37
42
  end
data/vlad-helpers.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{vlad-helpers}
8
- s.version = "0.0.3"
8
+ s.version = "0.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Kevin McFadden"]
12
- s.date = %q{2010-03-03}
12
+ s.date = %q{2010-04-12}
13
13
  s.description = %q{}
14
14
  s.email = %q{kevin@conceptsahead.com}
15
15
  s.extra_rdoc_files = [
@@ -31,7 +31,7 @@ Gem::Specification.new do |s|
31
31
  s.homepage = %q{http://github.com/n3bulous/vlad-helpers}
32
32
  s.rdoc_options = ["--charset=UTF-8"]
33
33
  s.require_paths = ["lib"]
34
- s.rubygems_version = %q{1.3.5}
34
+ s.rubygems_version = %q{1.3.6}
35
35
  s.summary = %q{Some custom Vlad tasks making non-rails and non-SCM-accessible projects deployable.}
36
36
  s.test_files = [
37
37
  "test/helper.rb",
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vlad-helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 1
8
+ - 1
9
+ version: 0.1.1
5
10
  platform: ruby
6
11
  authors:
7
12
  - Kevin McFadden
@@ -9,19 +14,21 @@ autorequire:
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2010-03-03 00:00:00 -07:00
17
+ date: 2010-04-12 00:00:00 -06:00
13
18
  default_executable:
14
19
  dependencies:
15
20
  - !ruby/object:Gem::Dependency
16
21
  name: thoughtbot-shoulda
17
- type: :development
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
20
24
  requirements:
21
25
  - - ">="
22
26
  - !ruby/object:Gem::Version
27
+ segments:
28
+ - 0
23
29
  version: "0"
24
- version:
30
+ type: :development
31
+ version_requirements: *id001
25
32
  description: ""
26
33
  email: kevin@conceptsahead.com
27
34
  executables: []
@@ -55,18 +62,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
55
62
  requirements:
56
63
  - - ">="
57
64
  - !ruby/object:Gem::Version
65
+ segments:
66
+ - 0
58
67
  version: "0"
59
- version:
60
68
  required_rubygems_version: !ruby/object:Gem::Requirement
61
69
  requirements:
62
70
  - - ">="
63
71
  - !ruby/object:Gem::Version
72
+ segments:
73
+ - 0
64
74
  version: "0"
65
- version:
66
75
  requirements: []
67
76
 
68
77
  rubyforge_project:
69
- rubygems_version: 1.3.5
78
+ rubygems_version: 1.3.6
70
79
  signing_key:
71
80
  specification_version: 3
72
81
  summary: Some custom Vlad tasks making non-rails and non-SCM-accessible projects deployable.