Class: Muxilla::Mux
- Inherits:
-
Object
- Object
- Muxilla::Mux
- Defined in:
- lib/muxilla/mux.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#id ⇒ Object
Returns the value of attribute id.
-
#nickname ⇒ Object
Returns the value of attribute nickname.
-
#rails ⇒ Object
Returns the value of attribute rails.
-
#resque ⇒ Object
Returns the value of attribute resque.
-
#type ⇒ Object
Returns the value of attribute type.
-
#update ⇒ Object
Returns the value of attribute update.
Instance Method Summary collapse
- #apps ⇒ Object
- #dev_root ⇒ Object
-
#initialize(nickname, options) ⇒ Mux
constructor
A new instance of Mux.
Constructor Details
#initialize(nickname, options) ⇒ Mux
Returns a new instance of Mux.
4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/muxilla/mux.rb', line 4 def initialize nickname, @nickname = nickname @type = [:type] @update = [:update] @id = [:id] @code = @rails = @resque = [] if [:apps] @code = [:apps]['code'].split ',' if [:apps]['code'] @rails = [:apps]['rails'].split ',' if [:apps]['rails'] @resque = [:apps]['resque'].split ',' if [:apps]['resque'] end end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
3 4 5 |
# File 'lib/muxilla/mux.rb', line 3 def code @code end |
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/muxilla/mux.rb', line 3 def id @id end |
#nickname ⇒ Object
Returns the value of attribute nickname.
3 4 5 |
# File 'lib/muxilla/mux.rb', line 3 def nickname @nickname end |
#rails ⇒ Object
Returns the value of attribute rails.
3 4 5 |
# File 'lib/muxilla/mux.rb', line 3 def rails @rails end |
#resque ⇒ Object
Returns the value of attribute resque.
3 4 5 |
# File 'lib/muxilla/mux.rb', line 3 def resque @resque end |
#type ⇒ Object
Returns the value of attribute type.
3 4 5 |
# File 'lib/muxilla/mux.rb', line 3 def type @type end |
#update ⇒ Object
Returns the value of attribute update.
3 4 5 |
# File 'lib/muxilla/mux.rb', line 3 def update @update end |
Instance Method Details
#apps ⇒ Object
17 18 19 20 |
# File 'lib/muxilla/mux.rb', line 17 def apps # delete this once the call has been removed from the template @code end |
#dev_root ⇒ Object
22 23 24 |
# File 'lib/muxilla/mux.rb', line 22 def dev_root "~/dev" end |