Sha256: 84c7d00f3a82870d99469ad807600c0e2bfe72a25e074240dc08eb78da01f6ef
Contents?: true
Size: 1.07 KB
Versions: 2
Compression:
Stored size: 1.07 KB
Contents
#!/usr/bin/env ruby # frozen_string_literal: true require_relative '../lib/balboa' command = ARGV.shift || 'make_punch' app = Balboa::CLI::Application.new(command) options = Balboa::CLI::Options.parse(ARGV) crawler = Balboa::Interactor::CapybaraInteractor.new(options) crawler_last_punch = Balboa::Interactor::Command::LastPunchCommand.new crawler_make_punch = Balboa::Interactor::Command::MakePunchCommand.new(options) crawler_login = Balboa::Interactor::Command::LoginCommand.new(options) crawler.add_command :last_punch, crawler_last_punch crawler.add_command :make_punch, crawler_make_punch crawler.add_command :login, crawler_login interactor = Balboa::Interactor::InteractorWrapper.new(crawler) app_last_punch = Balboa::CLI::Command::LastPunchCommand.new(interactor) app_make_punch = Balboa::CLI::Command::MakePunchCommand.new(interactor, options['holidays']) app_star_wars = Balboa::CLI::Command::StarWarsCommand.new app.add_command :last_punch, app_last_punch app.add_command :make_punch, app_make_punch app.add_command :star_wars, app_star_wars puts app.execute
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
balboa-0.1.1 | bin/balboa |
balboa-0.1.0 | bin/balboa |