Sha256: 9d3e986c4a85bb16553c62155b530fc792f9a8f029583762d1286590907f509e
Contents?: true
Size: 578 Bytes
Versions: 1
Compression:
Stored size: 578 Bytes
Contents
module GitBro # Provides functions for implementing serve command module ServeCommand def serve_arguments_valid? @arguments.size <= 1 ? true : false end def serve_process_arguments @options.repo_path = @arguments.size == 1 ? @arguments.first : Dir.pwd end def do_serve case GitBro::TARGET_OS when 'mswin32' system "ruby #{@options.gem_path}/sinatra/app.rb #{@options.repo_path}" when 'linux' system "/usr/bin/env ruby #{@options.gem_path}/sinatra/app.rb #{@options.repo_path}" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
git-bro-0.2.0 | lib/git-bro/commands/serve.rb |