Module: Ec2spec

Defined in:
lib/ec2spec.rb,
lib/ec2spec/cli.rb,
lib/ec2spec/const.rb,
lib/ec2spec/client.rb,
lib/ec2spec/logger.rb,
lib/ec2spec/version.rb,
lib/ec2spec/offer_file.rb,
lib/ec2spec/host_result.rb,
lib/ec2spec/initializer.rb,
lib/ec2spec/offer_index_file.rb,
lib/ec2spec/price_calculator.rb,
lib/ec2spec/formatter/hash_formatter.rb,
lib/ec2spec/formatter/json_formatter.rb,
lib/ec2spec/formatter/slack_formatter.rb,
lib/ec2spec/formatter/markdown_formatter.rb,
lib/ec2spec/formatter/plain_text_formatter.rb,
lib/ec2spec/calculator/api_price_calculator.rb,
lib/ec2spec/calculator/manual_price_calculator.rb

Defined Under Namespace

Modules: Calculator, Const, Formatter Classes: ApiKeyError, CLI, Client, HostResult, Initializer, OfferFile, OfferIndexFile, PriceCalculator, UndefineFormatterError, UndefinedCalcError

Constant Summary collapse

VERSION =
'0.1.3'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.loggerObject

Returns the value of attribute logger.



8
9
10
# File 'lib/ec2spec/logger.rb', line 8

def logger
  @logger
end

Class Method Details

.project_dirObject



18
19
20
# File 'lib/ec2spec.rb', line 18

def self.project_dir
  File.join(ENV['HOME'], Const::PROJECT_DIR)
end