Sha256: b12c77513104c87744e35e5dd20e723e2a93a0708e306295e90278ac1360b588

Contents?: true

Size: 1.36 KB

Versions: 38

Compression:

Stored size: 1.36 KB

Contents

require "tasks/application"

namespace :bullet_train do
  namespace :themes do
    namespace :light do
      desc "Eject the \"Light\" theme's main CSS file."
      task :eject_css do |task|
        BulletTrain::Themes::Application.eject_theme_main_css(get_theme_name_from_task(task))
      end

      desc "Fork the \"Light\" theme into your local repository."
      task :eject, [:destination] => :environment do |task, args|
        BulletTrain::Themes::Application.eject_theme(get_theme_name_from_task(task), args[:destination])
      end

      desc "Publish your custom theme theme as a Ruby gem."
      task :release, [:theme_name] => :environment do |task, args|
        BulletTrain::Themes::Application.release_theme(get_theme_name_from_task(task), args)
      end

      desc "Install this theme to your main application."
      task :install do |task|
        BulletTrain::Themes::Application.install_theme(get_theme_name_from_task(task))
      end

      desc "List view partials in theme that haven't changed since ejection from \"Light\"."
      task :clean, [:theme] => :environment do |task, args|
        BulletTrain::Themes::Application.clean_theme(get_theme_name_from_task(task), args)
      end

      # Grabs the theme name from task, i.e. - bullet_train:theme:light:eject.
      def get_theme_name_from_task(task)
        task.name.split(":")[2]
      end
    end
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
bullet_train-themes-light-1.11.0 lib/tasks/bullet_train/themes/light_tasks.rake
bullet_train-themes-light-1.10.0 lib/tasks/bullet_train/themes/light_tasks.rake
bullet_train-themes-light-1.9.0 lib/tasks/bullet_train/themes/light_tasks.rake
bullet_train-themes-light-1.8.5 lib/tasks/bullet_train/themes/light_tasks.rake
bullet_train-themes-light-1.8.4 lib/tasks/bullet_train/themes/light_tasks.rake
bullet_train-themes-light-1.8.3 lib/tasks/bullet_train/themes/light_tasks.rake
bullet_train-themes-light-1.8.2 lib/tasks/bullet_train/themes/light_tasks.rake
bullet_train-themes-light-1.8.1 lib/tasks/bullet_train/themes/light_tasks.rake
bullet_train-themes-light-1.8.0 lib/tasks/bullet_train/themes/light_tasks.rake
bullet_train-themes-light-1.7.23 lib/tasks/bullet_train/themes/light_tasks.rake
bullet_train-themes-light-1.7.22 lib/tasks/bullet_train/themes/light_tasks.rake
bullet_train-themes-light-1.7.21 lib/tasks/bullet_train/themes/light_tasks.rake
bullet_train-themes-light-1.7.20 lib/tasks/bullet_train/themes/light_tasks.rake
bullet_train-themes-light-1.7.19 lib/tasks/bullet_train/themes/light_tasks.rake
bullet_train-themes-light-1.7.18 lib/tasks/bullet_train/themes/light_tasks.rake
bullet_train-themes-light-1.7.17 lib/tasks/bullet_train/themes/light_tasks.rake
bullet_train-themes-light-1.7.16 lib/tasks/bullet_train/themes/light_tasks.rake
bullet_train-themes-light-1.7.15 lib/tasks/bullet_train/themes/light_tasks.rake
bullet_train-themes-light-1.7.14 lib/tasks/bullet_train/themes/light_tasks.rake
bullet_train-themes-light-1.7.13 lib/tasks/bullet_train/themes/light_tasks.rake