Class: Travis::Artifacts::Path
- Inherits:
-
Struct
- Object
- Struct
- Travis::Artifacts::Path
- Defined in:
- lib/travis/artifacts/path.rb
Instance Attribute Summary collapse
-
#from ⇒ Object
Returns the value of attribute from.
-
#root ⇒ Object
Returns the value of attribute root.
-
#to ⇒ Object
Returns the value of attribute to.
Instance Method Summary collapse
Instance Attribute Details
#from ⇒ Object
Returns the value of attribute from
2 3 4 |
# File 'lib/travis/artifacts/path.rb', line 2 def from @from end |
#root ⇒ Object
Returns the value of attribute root
2 3 4 |
# File 'lib/travis/artifacts/path.rb', line 2 def root @root end |
#to ⇒ Object
Returns the value of attribute to
2 3 4 |
# File 'lib/travis/artifacts/path.rb', line 2 def to @to end |
Instance Method Details
#directory? ⇒ Boolean
11 12 13 |
# File 'lib/travis/artifacts/path.rb', line 11 def directory? File.directory?(fullpath) end |
#fullpath ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/travis/artifacts/path.rb', line 3 def fullpath if from =~ /^\// from else File.join(root, from) end end |