Sha256: d42bd3444ef88019546863fcc1b51d54bd75829b5459dfedf8f667bb9ae3f4d1

Contents?: true

Size: 379 Bytes

Versions: 9

Compression:

Stored size: 379 Bytes

Contents

require 'thor/group'

module ChemistryKit
  module CLI
    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

9 entries across 9 versions & 1 rubygems

Version Path
chemistrykit-2.1.0 lib/chemistrykit/cli/beaker.rb
chemistrykit-2.0.0 lib/chemistrykit/cli/beaker.rb
chemistrykit-1.3.0 lib/chemistrykit/cli/beaker.rb
chemistrykit-1.2.1 lib/chemistrykit/cli/beaker.rb
chemistrykit-1.2.0 lib/chemistrykit/cli/beaker.rb
chemistrykit-1.1.1 lib/chemistrykit/cli/beaker.rb
chemistrykit-1.1.0 lib/chemistrykit/cli/beaker.rb
chemistrykit-1.0.0 lib/chemistrykit/cli/beaker.rb
chemistrykit-0.1.1 lib/chemistrykit/cli/beaker.rb