Method: Autoversion::CLI#initialize
- Defined in:
- lib/autoversion/cli.rb
#initialize(*args) ⇒ CLI
Returns a new instance of CLI.
12 13 14 15 16 |
# File 'lib/autoversion/cli.rb', line 12 def initialize(*args) super *args version_file_contents = CLI::version_file_contents || File.read(File.join(Dir.pwd, "Versionfile")) @versioner = Autoversion::Versioner.new version_file_contents, CLI::pwd end |