Sha256: e9646ddbe7cc1a129d00d054a9b0a06875922de683e3e8ec5b6eeac7c25945ce

Contents?: true

Size: 829 Bytes

Versions: 7

Compression:

Stored size: 829 Bytes

Contents

require 'rails'

module Frontend
  module Generators
    class InstallGenerator < ::Rails::Generators::Base

      desc "This generator installs the necessary config files, for all your services and base site meta tags."
      source_root File.expand_path('../../../../../', __FILE__)

      def copy_services
        say_status("copying", "Blank Services File", :green)
        copy_file "config/services.yml", "config/services.yml"
      end

      def copy_settings
        say_status("copying", "Blank Settings File", :green)
        copy_file "config/settings.yml", "config/settings.yml"
      end

      def copy_variables
        say_status("copying", "Blank Variables File", :green)
        copy_file "vendor/assets/stylesheets/variables.css.sass", "app/assets/stylesheets/variables.css.sass"
      end

    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
frontend-helpers-0.0.7 lib/generators/frontend/install/install_generator.rb
frontend-helpers-0.0.6 lib/generators/frontend/install/install_generator.rb
frontend-helpers-0.0.5 lib/generators/frontend/install/install_generator.rb
frontend-helpers-0.0.4 lib/generators/frontend/install/install_generator.rb
frontend-helpers-0.0.3 lib/generators/frontend/install/install_generator.rb
frontend-helpers-0.0.2 lib/generators/frontend/install/install_generator.rb
frontend-helpers-0.0.1.beta.1 lib/generators/frontend/install/install_generator.rb