Sha256: 6a6d1396ef126ef8b01763b6ffbda30c74e37e1bb7de6c014865bf678ea49710

Contents?: true

Size: 481 Bytes

Versions: 21

Compression:

Stored size: 481 Bytes

Contents

# Encoding: utf-8

require 'thor/group'

module ChemistryKit
  module CLI
    # Creates a new test harness
    class New < Thor::Group
      include Thor::Actions

      argument :name

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

      def create_project
        directory 'templates/chemistrykit', File.join(Dir.getwd, name)
      end

      def notify
        say 'Your test harness has been created.'
      end

    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

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