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-3.0.0 lib/learn_test/strategies/jasmine/initializer.rb
learn-test-2.7.0 lib/learn_test/strategies/jasmine/initializer.rb
learn-test-2.6.1 lib/learn_test/strategies/jasmine/initializer.rb
learn-test-2.6.0 lib/learn_test/strategies/jasmine/initializer.rb
learn-test-2.5.6 lib/learn_test/strategies/jasmine/initializer.rb
learn-test-2.5.5 lib/learn_test/strategies/jasmine/initializer.rb
learn-test-2.5.4 lib/learn_test/strategies/jasmine/initializer.rb
learn-test-2.5.3 lib/learn_test/strategies/jasmine/initializer.rb
learn-test-2.5.2 lib/learn_test/strategies/jasmine/initializer.rb
learn-test-2.5.1 lib/learn_test/strategies/jasmine/initializer.rb
learn-test-2.5.0 lib/learn_test/strategies/jasmine/initializer.rb
learn-test-2.5.0.rc2 lib/learn_test/strategies/jasmine/initializer.rb
learn-test-2.5.0.rc1 lib/learn_test/strategies/jasmine/initializer.rb
learn-test-2.4.2 lib/learn_test/strategies/jasmine/initializer.rb
learn-test-2.4.1 lib/learn_test/strategies/jasmine/initializer.rb
learn-test-2.4.0 lib/learn_test/strategies/jasmine/initializer.rb
learn-test-2.3.3 lib/learn_test/strategies/jasmine/initializer.rb
learn-test-2.3.2 lib/learn_test/strategies/jasmine/initializer.rb
learn-test-2.3.1 lib/learn_test/strategies/jasmine/initializer.rb
learn-test-2.3.0 lib/learn_test/strategies/jasmine/initializer.rb