Sha256: 5c326a6238575ae8a0ef7b6cf4428bb0c6e76b5ed5a6aa8f83c79b3aa80f7fdf

Contents?: true

Size: 330 Bytes

Versions: 11

Compression:

Stored size: 330 Bytes

Contents

module Rake::Funnel::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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
rake-funnel-0.3.2.pre lib/rake/funnel/integration/teamcity/teamcity.rb
rake-funnel-0.3.1.pre lib/rake/funnel/integration/teamcity/teamcity.rb
rake-funnel-0.3.0.pre lib/rake/funnel/integration/teamcity/teamcity.rb
rake-funnel-0.2.0.pre lib/rake/funnel/integration/teamcity/teamcity.rb
rake-funnel-0.1.0.pre lib/rake/funnel/integration/teamcity/teamcity.rb
rake-funnel-0.0.6.pre lib/rake/funnel/integration/teamcity/teamcity.rb
rake-funnel-0.0.5.pre lib/rake/funnel/integration/teamcity/teamcity.rb
rake-funnel-0.0.4.pre lib/rake/funnel/integration/teamcity/teamcity.rb
rake-funnel-0.0.3.pre lib/rake/funnel/integration/teamcity/teamcity.rb
rake-funnel-0.0.2.pre lib/rake/funnel/integration/teamcity/teamcity.rb
rake-funnel-0.0.1.pre lib/rake/funnel/integration/teamcity/teamcity.rb