Sha256: e27ff85de9fc34ed424f90b746aa7db8be298bd0d5d0169e07dbd9398311fbdc

Contents?: true

Size: 484 Bytes

Versions: 4

Compression:

Stored size: 484 Bytes

Contents

# frozen_string_literal: true

require "plutonium_generators"

module Pu
  module Gem
    class RablGenerator < Rails::Generators::Base
      include PlutoniumGenerators::Generator

      source_root File.expand_path("templates", __dir__)

      desc "Install Rabl"

      def start
        Bundler.with_unbundled_env do
          run "bundle add rabl"
        end

        directory "config"
      rescue => e
        exception "#{self.class} failed:", e
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
plutonium-0.6.2 lib/generators/pu/gem/rabl/rabl_generator.rb
plutonium-0.6.1 lib/generators/pu/gem/rabl/rabl_generator.rb
plutonium-0.6.0 lib/generators/pu/gem/rabl/rabl_generator.rb
plutonium-0.5.0 lib/generators/pu/gem/rabl/rabl_generator.rb