Class: PoolParty::Plugin::BashAlias

Inherits:
PoolParty::Plugin show all
Defined in:
lib/extensions/bash_alias.rb

Instance Method Summary collapse

Instance Method Details

#before_load(opts = {}, &block) ⇒ Object



11
12
13
14
# File 'lib/extensions/bash_alias.rb', line 11

def before_load(opts={}, &block)
  # TODO, why does "has_" segfault
  line_in_file :file => "/root/.profile", :line => "alias #{opts[:name]}='#{opts[:value]}'"
end