Sha256: 4e96726fb19238b8c4523971a1318bde48d5a264bc5989fb89f63b7058491a4d

Contents?: true

Size: 623 Bytes

Versions: 32

Compression:

Stored size: 623 Bytes

Contents

module Skylight
  module CLI
    module Helpers
      private

        # Duplicated below
        def rails_rb
          File.expand_path("config/application.rb")
        end

        def rails?
          File.exist?(rails_rb)
        end

        def config
          # Calling .load checks ENV variables
          @config ||= Config.load
        end

        # Sets the output padding while executing a block and resets it.
        #
        def indent(count = 1)
          orig_padding = shell.padding
          shell.padding += count
          yield
          shell.padding = orig_padding
        end
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
skylight-5.1.0.beta lib/skylight/cli/helpers.rb
skylight-5.0.1 lib/skylight/cli/helpers.rb
skylight-5.0.0 lib/skylight/cli/helpers.rb
skylight-5.0.0.beta5 lib/skylight/cli/helpers.rb
skylight-4.3.2 lib/skylight/cli/helpers.rb
skylight-5.0.0.beta4 lib/skylight/cli/helpers.rb
skylight-5.0.0.beta3 lib/skylight/cli/helpers.rb
skylight-5.0.0.beta2 lib/skylight/cli/helpers.rb
skylight-5.0.0.beta lib/skylight/cli/helpers.rb
skylight-4.3.1 lib/skylight/cli/helpers.rb
skylight-4.3.0 lib/skylight/cli/helpers.rb
skylight-4.2.3 lib/skylight/cli/helpers.rb
skylight-4.2.2 lib/skylight/cli/helpers.rb
skylight-4.2.1 lib/skylight/cli/helpers.rb
skylight-4.2.0 lib/skylight/cli/helpers.rb
skylight-4.2.0.beta3 lib/skylight/cli/helpers.rb
skylight-4.2.0.beta2 lib/skylight/cli/helpers.rb
skylight-4.2.0.beta lib/skylight/cli/helpers.rb
skylight-4.1.2 lib/skylight/cli/helpers.rb
skylight-4.1.1 lib/skylight/cli/helpers.rb