Sha256: 65a2e3ae1c7265febed2a041d8beac9a6d324887406d79908536ac20d8389c50

Contents?: true

Size: 477 Bytes

Versions: 5

Compression:

Stored size: 477 Bytes

Contents

module Learn
  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

5 entries across 5 versions & 1 rubygems

Version Path
learn-co-1.0.4 lib/learn/jasmine/initializer.rb
learn-co-1.0.3 lib/learn/jasmine/initializer.rb
learn-co-1.0.2 lib/learn/jasmine/initializer.rb
learn-co-1.0.1 lib/learn/jasmine/initializer.rb
learn-co-1.0.0 lib/learn/jasmine/initializer.rb