Sha256: 4495f021f033202f2aa5c541e54e93858f89acfbd6113d73bdc0ca26ec782f7b
Contents?: true
Size: 743 Bytes
Versions: 2
Compression:
Stored size: 743 Bytes
Contents
# frozen_string_literal: true require "sod" module Pennyworth module CLI module Actions module GitHub # Handles the GitHub user action. class Organization < Sod::Action include Import[:kernel] description "Specify organization." on %w[-o --organization], argument: "[HANDLE]", default: Container[:configuration].git_hub_organization def initialize(processor: Processor.for_projects, **) super(**) @processor = processor end def call(handle = default) = kernel.puts processor.call("orgs/#{handle}").to_json private attr_reader :processor end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pennyworth-15.0.1 | lib/pennyworth/cli/actions/git_hub/organization.rb |
pennyworth-15.0.0 | lib/pennyworth/cli/actions/git_hub/organization.rb |