Sha256: 30baaec4a1059624d64f959341ada8c6981003d935426846fd53f57144a3b711

Contents?: true

Size: 554 Bytes

Versions: 4

Compression:

Stored size: 554 Bytes

Contents

require "figaro/application"

module Figaro
  class CLI < Thor
    class Task
      attr_reader :options

      def self.run(options = {})
        new(options).run
      end

      def initialize(options = {})
        @options = options
      end

      private

      def configuration
        application.configuration
      end

      def application
        @application ||= Figaro::Application.new(options)
      end

      if defined? Bundler
        def system(*)
          Bundler.with_clean_env { super }
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
seielit-figaro-1.1.2 lib/figaro/cli/task.rb
figaro-1.1.1 lib/figaro/cli/task.rb
figaro-1.1.0 lib/figaro/cli/task.rb
figaro-1.0.0 lib/figaro/cli/task.rb