obbistrano 1.1.73 → 1.1.74

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.
@@ -514,20 +514,26 @@ Capistrano::Configuration.instance(:must_exist).load do
514
514
 
515
515
  namespace :bundle do
516
516
 
517
- task :css, :roles => [:web] do
517
+
518
+ task :css, :roles => [:web] do
518
519
  paths = get_top_level_directories("#{build_to}/public/stylesheets")
519
520
  if defined? "#{newdeploy}" then
520
- paths << "#{build_to}/public/stylesheets/"
521
521
  if defined? "#{plugins}"
522
522
  plugins.each do |plugin|
523
- print "#{plugin}"
523
+ print "plugin: #{plugin}\n"
524
524
  paths << "#{build_to}/plugins/#{plugin}/resources/public/stylesheets"
525
525
  end
526
526
  end
527
+ puts "--"
528
+ paths.each do |path|
529
+ puts "folders: #{path}\n"
530
+ end
527
531
  Dir.mkdir("#{build_to}/public/stylesheets/build") rescue ""
528
532
  paths.each do |bundle_directory|
529
- bundle_name = bundle_directory.gsub("#{build_to}/", "").gsub("plugins/", "").gsub("/resources/public/stylesheets", "")
530
- puts " #{bundle_name}"
533
+ puts "--"
534
+ puts "directory: #{bundle_directory}"
535
+ bundle_name = bundle_directory.gsub("#{build_to}/", "").gsub("plugins/", "").gsub("/resources/public/stylesheets", "").gsub("public/stylesheets/", "")
536
+ puts " bundle name: #{bundle_name}"
531
537
  next if bundle_name.empty?
532
538
  files = recursive_file_list(bundle_directory, ".css")
533
539
  next if files.empty? || bundle_name == 'dev'
@@ -559,21 +565,25 @@ Capistrano::Configuration.instance(:must_exist).load do
559
565
  end
560
566
  upload "#{build_to}/public/stylesheets/build", "#{deploy_to}/public/stylesheets/", :via => :scp, :recursive=>true
561
567
  end
562
-
563
568
  task :js , :roles => [:web] do
564
569
  paths = get_top_level_directories("#{build_to}/public/javascripts")
565
570
  if defined? "#{newdeploy}" then
566
- paths << "#{build_to}/public/javascripts/"
567
571
  if defined? "#{plugins}"
568
572
  plugins.each do |plugin|
573
+ print "plugin: #{plugin}\n"
569
574
  paths << "#{build_to}/plugins/#{plugin}/resources/public/javascripts"
570
575
  end
571
576
  end
577
+ puts "--"
578
+ paths.each do |path|
579
+ puts "folders: #{path}\n"
580
+ end
572
581
  Dir.mkdir("#{build_to}/public/javascripts/build") rescue ""
573
582
  paths.each do |bundle_directory|
574
- puts bundle_directory
575
- bundle_name = bundle_directory.gsub("#{build_to}/", "").gsub("plugins/", "").gsub("/resources/public/javascripts", "")
576
- puts " #{bundle_name}"
583
+ puts "--"
584
+ puts "directory: #{bundle_directory}"
585
+ bundle_name = bundle_directory.gsub("#{build_to}/", "").gsub("plugins/", "").gsub("/resources/public/javascripts", "").gsub("public/javascripts/", "")
586
+ puts " bundle name: #{bundle_name}"
577
587
  next if bundle_name.empty?
578
588
  files = recursive_file_list(bundle_directory, ".js")
579
589
  next if files.empty? || bundle_name == 'dev'
@@ -603,10 +613,10 @@ Capistrano::Configuration.instance(:must_exist).load do
603
613
  end
604
614
  end
605
615
  upload "#{build_to}/public/javascripts/build", "#{deploy_to}/public/javascripts/", :via => :scp, :recursive=>true
606
-
607
616
  end
608
617
 
609
618
 
619
+
610
620
  require 'find'
611
621
  def recursive_file_list(basedir, ext)
612
622
  files = []
data/obbistrano.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{obbistrano}
5
- s.version = "1.1.73"
5
+ s.version = "1.1.74"
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=
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 1
8
- - 73
9
- version: 1.1.73
8
+ - 74
9
+ version: 1.1.74
10
10
  platform: ruby
11
11
  authors:
12
12
  - Ross Riley