Sha256: 9dc1a3ca5b7bd23f7986fa023edf02e06410e657a320dd9b9ce57374b069d879

Contents?: true

Size: 311 Bytes

Versions: 55

Compression:

Stored size: 311 Bytes

Contents

Standup.script :node do
  self.description = 'Open Web browser with specified node address'
  
  def run
    return unless node.instance
    ['x-www-browser', 'open'].each do |cmd|
      if `which #{cmd}`.present?
        `#{cmd} http://#{node.instance.external_ip}/`
        return
      end
    end
  end
end

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
standup-0.6.9 scripts/browse.rb
standup-0.6.8 scripts/browse.rb
standup-0.6.7 scripts/browse.rb
standup-0.6.6 scripts/browse.rb
standup-0.6.5 scripts/browse.rb
standup-0.6.4 scripts/browse.rb
standup-0.6.3 scripts/browse.rb
standup-0.6.2 scripts/browse.rb
standup-0.6.1 scripts/browse.rb
standup-0.6.0 scripts/browse.rb
standup-0.5.14 scripts/browse.rb
standup-0.5.13 scripts/browse.rb
standup-0.5.11 scripts/browse.rb
standup-0.5.10 scripts/browse.rb
standup-0.5.9 scripts/browse.rb
standup-0.5.8 scripts/browse.rb
standup-0.5.7 scripts/browse.rb
standup-0.5.6 scripts/browse.rb
standup-0.5.5 scripts/browse.rb
standup-0.5.4 scripts/browse.rb