Sha256: 3f21830dbaeb350e8ffdb3065066ef6830e19e629188561deae077854de06221

Contents?: true

Size: 484 Bytes

Versions: 1

Compression:

Stored size: 484 Bytes

Contents

module Install
  module Figaro
    def self.included(thor)
      thor.class_eval do

        def install_figaro
          insert_into_file 'Gemfile', after: "gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]\n" do <<-CODE
  gem "figaro"
  CODE
          end

          run 'bundle install'
          run 'bundle exec figaro install'
          copy_file 'rails/config/application.example.yml', 'config/application.example.yml'
        end

      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
myrails-6.0.0 lib/myrails/modules/figaro.rb