Sha256: 39d3f7cd94719662dba802bdca34de645a031a5945b311f89d935f12f0dfed46

Contents?: true

Size: 1.07 KB

Versions: 4

Compression:

Stored size: 1.07 KB

Contents

# install_template_path = File.expand_path("../../install/template.rb", __dir__).freeze
bin_path = ENV["BUNDLE_BIN"] || "./bin"
require 'optparse'

namespace :hyperstack do
  desc "Install Hyperstack in this application"
  task :install do
    exec "#{RbConfig.ruby} #{bin_path}/rails g hyperstack:install"
  end
  namespace :install do
    task :default do
    end
    task "hotloader" do
      exec "#{RbConfig.ruby} #{bin_path}/rails g hyperstack:install --hotloader-only"
    end
    task "webpack" do
      exec "#{RbConfig.ruby} #{bin_path}/rails g hyperstack:install --webpack-only"
    end
    task "hyper-model" do
      exec "#{RbConfig.ruby} #{bin_path}/rails g hyperstack:install --hyper-model-only"
    end
    task "skip-hotloader" do
      exec "#{RbConfig.ruby} #{bin_path}/rails g hyperstack:install --skip-hotloader"
    end
    task "skip-webpack" do
      exec "#{RbConfig.ruby} #{bin_path}/rails g hyperstack:install --skip-webpack"
    end
    task "skip-hyper-model" do
      exec "#{RbConfig.ruby} #{bin_path}/rails g hyperstack:install --skip-hyper-model"
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rails-hyperstack-1.0.alpha1.8 lib/tasks/hyperstack/install.rake
rails-hyperstack-1.0.alpha1.7 lib/tasks/hyperstack/install.rake
rails-hyperstack-1.0.alpha1.6 lib/tasks/hyperstack/install.rake
rails-hyperstack-1.0.alpha1.5 lib/tasks/hyperstack/install.rake