Sha256: ef3cdedaca514bfb9b74de40643dfce0d3776fbae19ba6adc2228f3c665ca061

Contents?: true

Size: 314 Bytes

Versions: 9

Compression:

Stored size: 314 Bytes

Contents

module Nephos
  module Bin

    def self.is_a_valid_application? dir="."
      return false if not Dir.exists? dir
      gfl = File.expand_path "Gemfile.lock", dir
      return false if not File.exists? gfl
      return false if not File.read(gfl).split.index("nephos-server")
      return true
    end

  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
nephos-server-0.4.8 lib/nephos-server/bin-helpers.rb
nephos-server-0.4.7 lib/nephos-server/bin-helpers.rb
nephos-server-0.4.6 lib/nephos-server/bin-helpers.rb
nephos-server-0.4.5 lib/nephos-server/bin-helpers.rb
nephos-server-0.4.4 lib/nephos-server/bin-helpers.rb
nephos-server-0.4.3 lib/nephos-server/bin-helpers.rb
nephos-server-0.4.2 lib/nephos-server/bin-helpers.rb
nephos-server-0.4.1 lib/nephos-server/bin-helpers.rb
nephos-server-0.4.0 lib/nephos-server/bin-helpers.rb