Class: Churned::Commands::Install
- Inherits:
-
Churned::Command
- Object
- Churned::Command
- Churned::Commands::Install
- Defined in:
- lib/churned/commands/install.rb
Instance Method Summary collapse
- #execute(filename = ".churned/hashes.txt", input: $stdin, output: $stdout) ⇒ Object
-
#initialize(options) ⇒ Install
constructor
A new instance of Install.
Methods inherited from Churned::Command
#command, #cursor, #db, #editor, #exec_exist?, #generator, #pager, #platform, #prompt, #screen, #which
Constructor Details
#initialize(options) ⇒ Install
Returns a new instance of Install.
8 9 10 |
# File 'lib/churned/commands/install.rb', line 8 def initialize() @options = end |
Instance Method Details
#execute(filename = ".churned/hashes.txt", input: $stdin, output: $stdout) ⇒ Object
12 13 14 15 16 |
# File 'lib/churned/commands/install.rb', line 12 def execute(filename = ".churned/hashes.txt", input: $stdin, output: $stdout) db.create command.run("git log --no-merges --pretty=format:'%H%n%ad%n%ae' --numstat --since=1.years > #{filename}") db.load(filename) end |