Class: Deveo::App
- Inherits:
-
Object
- Object
- Deveo::App
- Defined in:
- lib/deveo/app.rb
Defined Under Namespace
Classes: Metadata
Constant Summary collapse
- INITIAL_VERSION =
"0.0.1"
Instance Attribute Summary collapse
-
#meta ⇒ Object
readonly
Returns the value of attribute meta.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Class Method Summary collapse
Instance Method Summary collapse
- #init ⇒ Object
-
#initialize(name) ⇒ App
constructor
A new instance of App.
Constructor Details
Instance Attribute Details
#meta ⇒ Object (readonly)
Returns the value of attribute meta.
14 15 16 |
# File 'lib/deveo/app.rb', line 14 def @meta end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
14 15 16 |
# File 'lib/deveo/app.rb', line 14 def name @name end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
14 15 16 |
# File 'lib/deveo/app.rb', line 14 def path @path end |
Class Method Details
.package(path) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/deveo/app.rb', line 6 def self.package(path) Zip::File.open("#{File.basename(path)}.zip", Zip::File::CREATE) do |zipfile| Dir[File.join(path, "**", "**")].each do |file| zipfile.add(file.sub(File.join(path, ""), ""), file) end end end |
Instance Method Details
#init ⇒ Object
22 23 24 25 |
# File 'lib/deveo/app.rb', line 22 def init copy_skeleton end |