lib/chandler/commands/push.rb in chandler-0.1.0 vs lib/chandler/commands/push.rb in chandler-0.1.1
- old
+ new
@@ -10,16 +10,14 @@
class Push
include Logging
using Chandler::Refinements::Color
using Chandler::Refinements::VersionFormat
- attr_reader :github, :changelog, :tags, :config
+ attr_reader :tags, :config
def initialize(tags:, config:)
@tags = tags
- @github = config.github
- @changelog = config.changelog
@config = config
end
def call
benchmarking_each_tag do |tag|
@@ -30,9 +28,17 @@
)
end
end
private
+
+ def github
+ config.github
+ end
+
+ def changelog
+ config.changelog
+ end
def benchmarking_each_tag
width = tags.map(&:length).max
tags.each do |tag|
ellipsis = "…".ljust(1 + width - tag.length)