Sha256: aa69f760d577b169a1db8e131e1559cb5cde43dacaaba9cc840047924499ca17

Contents?: true

Size: 391 Bytes

Versions: 8

Compression:

Stored size: 391 Bytes

Contents

module Rake
  module Funnel
    module Integration
      module TeamCity
        ENV_VAR = 'TEAMCITY_PROJECT_NAME'

        class << self
          def running?
            ENV.include?(ENV_VAR)
          end

          def rake_runner?
            running? && Object.const_defined?('Rake') && Rake.const_defined?('TeamCityApplication')
          end
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rake-funnel-0.9.1.pre lib/rake/funnel/integration/teamcity/teamcity.rb
rake-funnel-0.9.0.pre lib/rake/funnel/integration/teamcity/teamcity.rb
rake-funnel-0.8.0.pre lib/rake/funnel/integration/teamcity/teamcity.rb
rake-funnel-0.7.0.pre lib/rake/funnel/integration/teamcity/teamcity.rb
rake-funnel-0.6.1.pre lib/rake/funnel/integration/teamcity/teamcity.rb
rake-funnel-0.6.0.pre lib/rake/funnel/integration/teamcity/teamcity.rb
rake-funnel-0.5.0.pre lib/rake/funnel/integration/teamcity/teamcity.rb
rake-funnel-0.4.0.pre lib/rake/funnel/integration/teamcity/teamcity.rb