Sha256: 75e1c0c3aa25d50d9d60c60a5363f9dab7233b846bce5565107ec77990984b2a

Contents?: true

Size: 481 Bytes

Versions: 41

Compression:

Stored size: 481 Bytes

Contents

module LearnTest
  module Jasmine
    class Initializer
      def self.run
        new.run
      end

      def run
        make_spec_directory
        generate_app_js
      end

      def make_spec_directory
        FileUtils.mkdir_p('spec')
        FileUtils.touch('spec/.keep')
      end

      def generate_app_js
        FileUtils.cp(
          "#{FileFinder.location_to_dir('templates')}/requires.yml.example",
          'requires.yml'
        )
      end
    end
  end
end

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
learn-test-1.1.0 lib/learn_test/jasmine/initializer.rb