Class: AppDrone::Git
- Inherits:
-
Drone
- Object
- Drone
- AppDrone::Git
show all
- Defined in:
- lib/app_drone/drones/git/git.rb
Instance Attribute Summary collapse
Attributes inherited from Drone
#params
Instance Method Summary
collapse
Methods inherited from Drone
#>>, #^, #align, categories, category, dependants, dependencies, depends_on, desc, #do!, #do_finally!, drones, #flair!, generator_method, human_name, #initialize, #method_missing, #notify!, owns_generator_method, #pair?, pairs, pairs_with, param, #param, param_named, param_with, params, precursors, #render, run_after, to_sym
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
in the class AppDrone::Drone
Instance Attribute Details
#fetches ⇒ Object
Returns the value of attribute fetches.
8
9
10
|
# File 'lib/app_drone/drones/git/git.rb', line 8
def fetches
@fetches
end
|
Instance Method Details
#execute ⇒ Object
18
19
20
21
22
|
# File 'lib/app_drone/drones/git/git.rb', line 18
def execute
do! :fetch
do_finally! :cleanup
do_finally! :commit if param(:commit)
end
|
#fetch(f) ⇒ Object
16
|
# File 'lib/app_drone/drones/git/git.rb', line 16
def fetch(f); self.fetches << f end
|
#locate(p) ⇒ Object
24
25
26
|
# File 'lib/app_drone/drones/git/git.rb', line 24
def locate(p)
File.join tmp_path, p
end
|
#setup ⇒ Object
12
13
14
|
# File 'lib/app_drone/drones/git/git.rb', line 12
def setup
self.fetches = []
end
|
#tmp_path ⇒ Object
10
|
# File 'lib/app_drone/drones/git/git.rb', line 10
def tmp_path; 'git_tmp' end
|