Sha256: 8c58ce1ba21e7100bda90ba481b7eff1a04a7c861aa8b94c56ffeb625d65a3b0

Contents?: true

Size: 374 Bytes

Versions: 8

Compression:

Stored size: 374 Bytes

Contents

require 'blazing/recipe'

module Blazing
  class BundlerRecipe < Blazing::Recipe

    def initialize(name, options = {})
      options[:flags] ||= '--deployment'
      super(name, options)
    end

    def run
      if File.exists?(File.join(Dir.pwd, 'Gemfile'))
        @runner.run "bundle install #{@options[:flags]}"
      else
        false
      end
    end

  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
blazing-0.0.16 lib/blazing/recipes/bundler_recipe.rb
blazing-0.0.15 lib/blazing/recipes/bundler_recipe.rb
blazing-0.0.14 lib/blazing/recipes/bundler_recipe.rb
blazing-0.0.13 lib/blazing/recipes/bundler_recipe.rb
blazing-0.0.12 lib/blazing/recipes/bundler_recipe.rb
blazing-0.0.10 lib/blazing/recipes/bundler_recipe.rb
blazing-0.0.9 lib/blazing/recipes/bundler_recipe.rb
blazing-0.0.8 lib/blazing/recipes/bundler_recipe.rb