Sha256: 8b073e963021cb9b51beacbd67a16d3e89c7eac57a22d1884f53afee34eddde3

Contents?: true

Size: 446 Bytes

Versions: 21

Compression:

Stored size: 446 Bytes

Contents

# Encoding: utf-8

require 'thor/group'

module ChemistryKit
  module CLI
    # Creates a starting beaker from a template
    class BeakerGenerator < Thor::Group
      include Thor::Actions
      argument :name

      def self.source_root
        File.join(File.dirname(File.expand_path(__FILE__)), '../../templates/')
      end

      def create_lib_file
        template('beaker.tt', "./beakers/#{name}_beaker.rb")
      end

    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
chemistrykit-3.10.1 lib/chemistrykit/cli/beaker.rb
chemistrykit-3.10.0 lib/chemistrykit/cli/beaker.rb
chemistrykit-3.9.1 lib/chemistrykit/cli/beaker.rb
chemistrykit-3.9.0 lib/chemistrykit/cli/beaker.rb
chemistrykit-3.9.0.rc3 lib/chemistrykit/cli/beaker.rb
chemistrykit-3.9.0.rc2 lib/chemistrykit/cli/beaker.rb
chemistrykit-3.9.0.rc1 lib/chemistrykit/cli/beaker.rb
chemistrykit-3.8.1 lib/chemistrykit/cli/beaker.rb
chemistrykit-3.8.0 lib/chemistrykit/cli/beaker.rb
chemistrykit-3.7.0 lib/chemistrykit/cli/beaker.rb
chemistrykit-3.6.0 lib/chemistrykit/cli/beaker.rb
chemistrykit-3.5.0 lib/chemistrykit/cli/beaker.rb
chemistrykit-3.4.2 lib/chemistrykit/cli/beaker.rb
chemistrykit-3.4.1 lib/chemistrykit/cli/beaker.rb
chemistrykit-3.4.0 lib/chemistrykit/cli/beaker.rb
chemistrykit-3.3.1 lib/chemistrykit/cli/beaker.rb
chemistrykit-3.3.0 lib/chemistrykit/cli/beaker.rb
chemistrykit-3.2.0 lib/chemistrykit/cli/beaker.rb
chemistrykit-3.1.0 lib/chemistrykit/cli/beaker.rb
chemistrykit-3.0.1 lib/chemistrykit/cli/beaker.rb