Sha256: 876b8a79b550ea2993c0e57a35725c84bcbe41768caf83a84185e90bda0944d3

Contents?: true

Size: 576 Bytes

Versions: 13

Compression:

Stored size: 576 Bytes

Contents


module Capistrano
    module Ops
        require 'capistrano/ops/notification'
        require 'capistrano/ops/railtie' if defined?(Rails)
        require 'capistrano/ops/capistrano' if defined?(Capistrano::VERSION)
        def self.path
            Dir.pwd
        end

        def self.bin_rails?
            File.exist?(File.join(path, 'bin', 'rails'))
        end

        def self.script_rails?
            File.exist?(File.join(path, 'script', 'rails'))
        end

        def self.bundler?
            File.exist?(File.join(path, 'Gemfile'))
        end
    end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
capistrano-ops-0.2.2 lib/capistrano/ops.rb
capistrano-ops-0.2.1 lib/capistrano/ops.rb
capistrano-ops-0.2.0 lib/capistrano/ops.rb
capistrano-ops-0.1.9 lib/capistrano/ops.rb
capistrano-ops-0.1.8 lib/capistrano/ops.rb
capistrano-ops-0.1.7 lib/capistrano/ops.rb
capistrano-ops-0.1.6 lib/capistrano/ops.rb
capistrano-ops-0.1.5 lib/capistrano/ops.rb
capistrano-ops-0.1.4 lib/capistrano/ops.rb
capistrano-ops-0.1.3 lib/capistrano/ops.rb
capistrano-ops-0.1.2 lib/capistrano/ops.rb
capistrano-ops-0.1.1 lib/capistrano/ops.rb
capistrano-ops-0.1.0 lib/capistrano/ops.rb