Sha256: a38751eb05365c28ebaba7486d63bdf968098dc816e5a1e954261e2ae22af235

Contents?: true

Size: 413 Bytes

Versions: 1

Compression:

Stored size: 413 Bytes

Contents

module Cream
  module GeneratorHelper
    module Executor
      def add_gem name
        gem name if !has_gem? name
      end      
       
      # rails generate ...
      def rgen command
        execute "rails g #{command}"
      end        

      def execute command
        logger.debug command
        run command
      end

      def bundle_install
        run "bundle install"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cream-0.8.6 lib/generators/cream/helpers/execute_helper.rb