Sha256: 274d97df603ad3c0e4f54bc44cbb9a169d5e50c334b7806855dfc53f359dea33

Contents?: true

Size: 378 Bytes

Versions: 3

Compression:

Stored size: 378 Bytes

Contents

module Nuvado
  module Backend
    class Git
      def has_git?
        %x{git --version}
        $?.success?
      end

      def on_git_repo?
        return unless File.exist?('.git')
        true
      end

      def add_remote(url)
        %x{git remote add nuvado #{url}}
      end

      def get_remote
        %x{git config remote.nuvado.url}
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
nuvado-1.0.0.rc3 lib/nuvado/backend/git.rb
nuvado-1.0.0.rc2 lib/nuvado/backend/git.rb
nuvado-1.0.0.rc1 lib/nuvado/backend/git.rb