Class: Scriptorium
- Inherits:
-
Object
- Object
- Scriptorium
- Includes:
- Engine, Exceptions, Singleton
- Defined in:
- lib/scriptorium.rb,
lib/skeleton.rb,
lib/scriptorium/version.rb
Defined Under Namespace
Modules: Engine, Exceptions Classes: UI
Constant Summary collapse
- VERSION =
"0.0.3"
Class Attribute Summary collapse
-
.testing ⇒ Object
Returns the value of attribute testing.
Instance Attribute Summary collapse
-
#dir ⇒ Object
readonly
Instance attrs/methods.
-
#name ⇒ Object
readonly
Instance attrs/methods.
Instance Method Summary collapse
-
#initialize ⇒ Scriptorium
constructor
A new instance of Scriptorium.
Methods included from Engine
#create_new_repo, #destroy_repo, #repo_exists?
Constructor Details
#initialize ⇒ Scriptorium
Returns a new instance of Scriptorium.
30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/scriptorium.rb', line 30 def initialize @testing = self.class.testing @home = ENV['HOME'] if @testing @name = "TEST-ONLY BLOG REPO" @dir = "#@home/test-scriptorium" else @name = "Scriptorium repository" @dir = "#@home/Scriptorium" end end |
Class Attribute Details
.testing ⇒ Object
Returns the value of attribute testing.
22 23 24 |
# File 'lib/scriptorium.rb', line 22 def testing @testing end |
Instance Attribute Details
#dir ⇒ Object (readonly)
Instance attrs/methods
28 29 30 |
# File 'lib/scriptorium.rb', line 28 def dir @dir end |
#name ⇒ Object (readonly)
Instance attrs/methods
28 29 30 |
# File 'lib/scriptorium.rb', line 28 def name @name end |