obbistrano 1.1.152 → 1.1.153

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 971e91afd59cc110af0b0e0ceb49ed9967081055
4
+ data.tar.gz: 8523af40b5d6130a06941b0c24e80f2b8603f1e7
5
+ SHA512:
6
+ metadata.gz: 1b3b52901acfe2d9b77fedbf4afa07e1dcff75ca77b8d844a9c4e9464dd3d92ed5976a9ce961980d9c206bb468ddeaf53ac095ee4e085de9a02f48d07a117971
7
+ data.tar.gz: e062d39ad3bfd9d9662ea7743f72e1126cbab538a5ddf7311c8d5e6693675fdea2989fc70d5ebfeb6cbd5a3a1a741b979ae6be8158358f5b3f5d2796b7abf87f
@@ -1,13 +1,13 @@
1
1
  Capistrano::Configuration.instance(:must_exist).load do
2
2
 
3
3
  #### Global helper methods ######
4
-
4
+
5
5
  STDOUT.sync
6
6
  $error = false
7
7
 
8
8
  # Be less verbose by default
9
9
  #logger.level = Capistrano::Logger::IMPORTANT
10
-
10
+
11
11
  def pretty_print(msg)
12
12
  if logger.level == Capistrano::Logger::IMPORTANT
13
13
  msg = msg.slice(0, 87)
@@ -17,19 +17,19 @@ Capistrano::Configuration.instance(:must_exist).load do
17
17
  puts msg.green
18
18
  end
19
19
  end
20
-
20
+
21
21
  def puts_ok
22
22
  if logger.level == Capistrano::Logger::IMPORTANT && !$error
23
23
  puts '✔'.green
24
24
  end
25
25
  $error = false
26
26
  end
27
-
27
+
28
28
  def puts_fail
29
29
  puts '✘'.red
30
30
  end
31
-
32
-
31
+
32
+
33
33
  def remote_file_exists?(full_path)
34
34
  'true' == capture("if [ -e #{full_path} ]; then echo 'true'; fi").strip
35
35
  end
@@ -37,28 +37,28 @@ Capistrano::Configuration.instance(:must_exist).load do
37
37
  def remote_command_exists?(command)
38
38
  'true' == capture("if [ -x \"$(which #{command})\" ]; then echo 'true'; fi").strip
39
39
  end
40
-
40
+
41
41
  #### Variable defaults
42
42
  set :php_bin, "php"
43
-
43
+
44
44
  # Flags an app to install composer - false by default
45
45
  set :use_composer, false
46
-
46
+
47
47
  # If set to false download/install composer
48
48
  set :composer_bin, false
49
-
49
+
50
50
  # Options to pass to composer when installing/updating
51
51
  set :composer_options, "--no-scripts --verbose --prefer-dist"
52
52
 
53
53
  # Whether to update vendors using the configured dependency manager (composer or bin/vendors)
54
54
  set :update_vendors, false
55
-
55
+
56
56
  # run bin/vendors script in mode (upgrade, install (faster if shared /vendor folder) or reinstall)
57
57
  set :vendors_mode, "reinstall"
58
58
 
59
59
  # Path to deploy to after login. Defaults to root
60
60
  set :deploy_to, '.'
61
-
61
+
62
62
 
63
63
  #### Performs the initial setup for tasks ####
64
64
  task :config_setup do
@@ -84,7 +84,7 @@ Capistrano::Configuration.instance(:must_exist).load do
84
84
  bundle.css
85
85
  bundle.js
86
86
  end
87
-
87
+
88
88
  task :symlink, :roles =>[:web] do
89
89
  run "ln -s #{deploy_to}/app/config/bootstrap_#{environment}.php #{deploy_to}/app/config/bootstrap.php"
90
90
  end
@@ -114,7 +114,7 @@ Capistrano::Configuration.instance(:must_exist).load do
114
114
 
115
115
  task :git_deploy, :roles =>[:web] do
116
116
  puts "*** Application being updated on branch #{branch}".yellow
117
-
117
+
118
118
  set :local_branch, $1 if `git branch` =~ /\* (\S+)\s/m
119
119
  if !local_branch.eql? branch
120
120
  pretty_print "You are on branch #{local_branch}, not #{branch}, please check out there before deploying to be able to combine the correct js and css files.".red
@@ -122,7 +122,7 @@ Capistrano::Configuration.instance(:must_exist).load do
122
122
  exit
123
123
  end
124
124
 
125
- if defined? "#{commit}"
125
+ if defined? commit
126
126
  pretty_print "--> Deploy from #{repository} on commit #{commit}"
127
127
  else
128
128
  pretty_print "--> Deploy from #{repository} on branch #{branch}"
@@ -170,7 +170,7 @@ Capistrano::Configuration.instance(:must_exist).load do
170
170
 
171
171
  task :cms_deploy, :roles =>[:web] do
172
172
  pretty_print "--> Updating Wildfire CMS on branch #{cms}"
173
-
173
+
174
174
  run "mkdir -p #{deploy_to}/plugins/cms"
175
175
  begin
176
176
  run "ls #{deploy_to}/plugins/cms/.git/"
@@ -520,7 +520,7 @@ Capistrano::Configuration.instance(:must_exist).load do
520
520
  paths << "#{build_to}/plugins/#{plugin}/resources/public/stylesheets"
521
521
  end
522
522
  end
523
-
523
+
524
524
  Dir.mkdir("#{build_to}/public/stylesheets/build") rescue ""
525
525
  paths.each do |bundle_directory|
526
526
  bundle_name = bundle_directory.gsub("#{build_to}/", "").gsub("plugins/", "").gsub("/resources/public/stylesheets", "").gsub("public/stylesheets/", "")
@@ -569,7 +569,7 @@ Capistrano::Configuration.instance(:must_exist).load do
569
569
  paths << "#{build_to}/plugins/#{plugin}/resources/public/javascripts"
570
570
  end
571
571
  end
572
-
572
+
573
573
  Dir.mkdir("#{build_to}/public/javascripts/build") rescue ""
574
574
  paths.each do |bundle_directory|
575
575
  bundle_name = bundle_directory.gsub("#{build_to}/", "").gsub("plugins/", "").gsub("/resources/public/javascripts", "").gsub("public/javascripts/", "")
@@ -634,8 +634,8 @@ Capistrano::Configuration.instance(:must_exist).load do
634
634
  end
635
635
 
636
636
  end
637
-
638
-
637
+
638
+
639
639
  namespace :composer do
640
640
  desc "Gets composer and installs it"
641
641
  task :get, :roles => :web, :except => { :no_release => true } do
@@ -646,7 +646,7 @@ Capistrano::Configuration.instance(:must_exist).load do
646
646
  puts_ok
647
647
  rescue
648
648
  puts_fail
649
- end
649
+ end
650
650
  else
651
651
  pretty_print "--> Updating Composer"
652
652
  begin
@@ -669,7 +669,7 @@ Capistrano::Configuration.instance(:must_exist).load do
669
669
  puts_ok
670
670
  rescue
671
671
  puts_fail
672
- end
672
+ end
673
673
  end
674
674
 
675
675
  desc "Runs composer to install vendors from composer.lock file"
@@ -691,7 +691,7 @@ Capistrano::Configuration.instance(:must_exist).load do
691
691
  rescue
692
692
  puts_fail
693
693
  puts composer_out.white_on_red
694
- end
694
+ end
695
695
  end
696
696
 
697
697
  desc "Runs composer to update vendors, and composer.lock file"
@@ -712,7 +712,7 @@ Capistrano::Configuration.instance(:must_exist).load do
712
712
  rescue
713
713
  puts_fail
714
714
  puts composer_out.white_on_red
715
- end
715
+ end
716
716
  end
717
717
 
718
718
  desc "Dumps an optimized autoloader"
@@ -733,8 +733,8 @@ Capistrano::Configuration.instance(:must_exist).load do
733
733
  rescue
734
734
  puts_fail
735
735
  puts composer_out.white_on_red
736
- end
737
-
736
+ end
737
+
738
738
  end
739
739
 
740
740
  end
@@ -2,22 +2,22 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{obbistrano}
5
- s.version = "1.1.152"
5
+ s.version = "1.1.153"
6
6
  s.authors = ["Ross Riley", "One Black Bear"]
7
7
  s.date = Time.now
8
8
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
9
9
  s.require_paths = ["lib"]
10
10
  s.description = %q{An extension to Capistrano to handle deploys for One Black Bear}
11
11
  s.email = %q{ross@oneblackbear.com}
12
- s.files = ["README.textile", "obbistrano.gemspec", "lib/obbistrano.rb", "lib/obbistrano_tasks.rb", "lib/templates/apache_vhost.erb"]
12
+ s.files = ["README.textile", "obbistrano.gemspec", "lib/obbistrano.rb", "lib/obbistrano_tasks.rb", "lib/templates/apache_vhost.erb"]
13
13
  s.homepage = %q{http://github.com/oneblackbear/obbistrano}
14
14
  s.rubygems_version = %q{1.3.0}
15
15
  s.summary = %q{Adds extra namespaces to Capistrano to allow simple setup, deploys and maintenance.}
16
-
17
-
16
+
17
+
18
18
  s.add_dependency 'capistrano', "~> 2.13.5"
19
19
  s.add_dependency 'colored', ">= 1.2.0"
20
20
  s.add_dependency 'inifile', ">= 2.0.2"
21
21
  s.add_dependency 'capistrano-maintenance', '0.0.2'
22
-
22
+
23
23
  end
metadata CHANGED
@@ -1,122 +1,104 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: obbistrano
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 1
7
- - 1
8
- - 152
9
- version: 1.1.152
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.1.153
10
5
  platform: ruby
11
- authors:
6
+ authors:
12
7
  - Ross Riley
13
8
  - One Black Bear
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2013-01-16 00:00:00 +00:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
12
+ date: 2013-11-13 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
22
15
  name: capistrano
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
25
- requirements:
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
26
18
  - - ~>
27
- - !ruby/object:Gem::Version
28
- segments:
29
- - 2
30
- - 13
31
- - 5
19
+ - !ruby/object:Gem::Version
32
20
  version: 2.13.5
33
21
  type: :runtime
34
- version_requirements: *id001
35
- - !ruby/object:Gem::Dependency
36
- name: colored
37
22
  prerelease: false
38
- requirement: &id002 !ruby/object:Gem::Requirement
39
- requirements:
40
- - - ">="
41
- - !ruby/object:Gem::Version
42
- segments:
43
- - 1
44
- - 2
45
- - 0
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ~>
26
+ - !ruby/object:Gem::Version
27
+ version: 2.13.5
28
+ - !ruby/object:Gem::Dependency
29
+ name: colored
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - '>='
33
+ - !ruby/object:Gem::Version
46
34
  version: 1.2.0
47
35
  type: :runtime
48
- version_requirements: *id002
49
- - !ruby/object:Gem::Dependency
50
- name: inifile
51
36
  prerelease: false
52
- requirement: &id003 !ruby/object:Gem::Requirement
53
- requirements:
54
- - - ">="
55
- - !ruby/object:Gem::Version
56
- segments:
57
- - 2
58
- - 0
59
- - 2
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - '>='
40
+ - !ruby/object:Gem::Version
41
+ version: 1.2.0
42
+ - !ruby/object:Gem::Dependency
43
+ name: inifile
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - '>='
47
+ - !ruby/object:Gem::Version
60
48
  version: 2.0.2
61
49
  type: :runtime
62
- version_requirements: *id003
63
- - !ruby/object:Gem::Dependency
64
- name: capistrano-maintenance
65
50
  prerelease: false
66
- requirement: &id004 !ruby/object:Gem::Requirement
67
- requirements:
68
- - - "="
69
- - !ruby/object:Gem::Version
70
- segments:
71
- - 0
72
- - 0
73
- - 2
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - '>='
54
+ - !ruby/object:Gem::Version
55
+ version: 2.0.2
56
+ - !ruby/object:Gem::Dependency
57
+ name: capistrano-maintenance
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - '='
61
+ - !ruby/object:Gem::Version
74
62
  version: 0.0.2
75
63
  type: :runtime
76
- version_requirements: *id004
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - '='
68
+ - !ruby/object:Gem::Version
69
+ version: 0.0.2
77
70
  description: An extension to Capistrano to handle deploys for One Black Bear
78
71
  email: ross@oneblackbear.com
79
72
  executables: []
80
-
81
73
  extensions: []
82
-
83
74
  extra_rdoc_files: []
84
-
85
- files:
75
+ files:
86
76
  - README.textile
87
77
  - obbistrano.gemspec
88
78
  - lib/obbistrano.rb
89
79
  - lib/obbistrano_tasks.rb
90
80
  - lib/templates/apache_vhost.erb
91
- has_rdoc: true
92
81
  homepage: http://github.com/oneblackbear/obbistrano
93
82
  licenses: []
94
-
83
+ metadata: {}
95
84
  post_install_message:
96
85
  rdoc_options: []
97
-
98
- require_paths:
86
+ require_paths:
99
87
  - lib
100
- required_ruby_version: !ruby/object:Gem::Requirement
101
- requirements:
102
- - - ">="
103
- - !ruby/object:Gem::Version
104
- segments:
105
- - 0
106
- version: "0"
107
- required_rubygems_version: !ruby/object:Gem::Requirement
108
- requirements:
109
- - - ">="
110
- - !ruby/object:Gem::Version
111
- segments:
112
- - 0
113
- version: "0"
88
+ required_ruby_version: !ruby/object:Gem::Requirement
89
+ requirements:
90
+ - - '>='
91
+ - !ruby/object:Gem::Version
92
+ version: '0'
93
+ required_rubygems_version: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - '>='
96
+ - !ruby/object:Gem::Version
97
+ version: '0'
114
98
  requirements: []
115
-
116
99
  rubyforge_project:
117
- rubygems_version: 1.3.6
100
+ rubygems_version: 2.1.10
118
101
  signing_key:
119
- specification_version: 3
102
+ specification_version: 4
120
103
  summary: Adds extra namespaces to Capistrano to allow simple setup, deploys and maintenance.
121
104
  test_files: []
122
-