forked from aeolus-incubator/thor-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Put CLI and Client under a common Aeolus module
These module names were changed: AeolusCli -> Aeolus::Cli AeolusClient -> Aeolus::Client This scopes our code under common Aeolus module. To adhere to gem naming conventions in Ruby, the gem name was changed accordingly: aeolus_cli -> aeolus-cli Closes aeolus-incubator#20.
- Loading branch information
Showing
39 changed files
with
168 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
source 'https://rubygems.org' | ||
|
||
# Specify your gem's dependencies in aeolus_cli.gemspec | ||
# Specify your gem's dependencies in aeolus-cli.gemspec | ||
gemspec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
# -*- encoding: utf-8 -*- | ||
lib = File.expand_path('../lib', __FILE__) | ||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) | ||
require 'aeolus_cli/version' | ||
require 'aeolus/cli/version' | ||
|
||
Gem::Specification.new do |gem| | ||
gem.name = "aeolus_cli" | ||
gem.version = AeolusCli::VERSION | ||
gem.name = "aeolus-cli" | ||
gem.version = Aeolus::Cli::VERSION | ||
gem.authors = "Crag Wolfe" | ||
gem.email = "[email protected]" | ||
gem.description = %q{Command-line interface to aeolus} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
module Aeolus | ||
end | ||
|
||
module Aeolus::Cli | ||
end | ||
|
||
class Aeolus::Cli::Error < StandardError | ||
attr_reader :message | ||
|
||
def initialize(message) | ||
@message = message | ||
end | ||
end | ||
|
||
class Aeolus::Cli::ConfigError < Aeolus::Cli::Error; end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
lib/aeolus_cli/formatting/errors.rb → lib/aeolus/cli/formatting/errors.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
lib/aeolus_cli/formatting/format.rb → lib/aeolus/cli/formatting/format.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 7 additions & 7 deletions
14
lib/aeolus_cli/formatting/human_format.rb → lib/aeolus/cli/formatting/human_format.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
..._cli/formatting/human_presenter_filter.rb → .../cli/formatting/human_presenter_filter.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions
12
lib/aeolus_cli/formatting/machine_format.rb → lib/aeolus/cli/formatting/machine_format.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
lib/aeolus_cli/formatting/presenter.rb → lib/aeolus/cli/formatting/presenter.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...aeolus_cli/formatting/presenter_sorter.rb → ...aeolus/cli/formatting/presenter_sorter.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
.../formatting/provider_account_presenter.rb → .../formatting/provider_account_presenter.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...olus_cli/formatting/provider_presenter.rb → ...olus/cli/formatting/provider_presenter.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
require 'aeolus/cli' | ||
require 'thor' | ||
require 'aeolus/cli/provider' | ||
require 'aeolus/cli/provider_account' | ||
|
||
class Aeolus::Cli::Main < Thor | ||
|
||
desc 'provider', 'show provider subcommands' | ||
subcommand 'provider', Aeolus::Cli::Provider | ||
|
||
desc 'provider_account', 'show provider account subcommands' | ||
subcommand 'provider_account', Aeolus::Cli::ProviderAccount | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module Aeolus | ||
module Cli | ||
VERSION = "0.0.2" | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
require 'active_resource' | ||
|
||
module AeolusClient | ||
module Aeolus | ||
end | ||
|
||
module Aeolus::Client | ||
end | ||
|
||
module ActiveResource | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
require 'aeolus_client' | ||
require 'aeolus/client' | ||
require 'logger' | ||
|
||
# FIXME: get rid of these when refactoring config loading: | ||
ActiveResource::Base.logger = Logger.new(STDOUT) | ||
ActiveResource::Base.logger.level = Logger::INFO | ||
|
||
class AeolusClient::Base < ActiveResource::Base | ||
class Aeolus::Client::Base < ActiveResource::Base | ||
self.timeout = 600 | ||
self.format = :xml | ||
end |
Oops, something went wrong.