Sha256: c8385d9aa6b745e15093fc634e930d8e66983eee19c3b9c61e151bd182694e3c

Contents?: true

Size: 262 Bytes

Versions: 7

Compression:

Stored size: 262 Bytes

Contents

module Bard::CLI::Open
  def self.included mod
    mod.class_eval do

      desc "open [server=production]", "opens the url in the web browser."
      def open server=:production
        exec "xdg-open #{config[server].ping.first}"
      end

    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
bard-1.0.8 lib/bard/cli/open.rb
bard-1.0.7 lib/bard/cli/open.rb
bard-1.0.6 lib/bard/cli/open.rb
bard-1.0.5 lib/bard/cli/open.rb
bard-1.0.4 lib/bard/cli/open.rb
bard-1.0.3 lib/bard/cli/open.rb
bard-1.0.2 lib/bard/cli/open.rb