-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restructure project and add new spec testing approach.
- Loading branch information
Showing
157 changed files
with
949 additions
and
347 deletions.
There are no files selected for viewing
Empty file.
Empty file.
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
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
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
Empty file.
Empty file.
Empty file.
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
Empty file.
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
Empty file.
Empty file.
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
0
lib/zaws/awscli/commands.rb → lib/zaws/external/awscli/commands.rb
100644 → 100755
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
0
lib/zaws/awscli/data.rb → lib/zaws/external/awscli/data.rb
100644 → 100755
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
0
lib/zaws/awscli/data/iam.rb → lib/zaws/external/awscli/data/iam.rb
100644 → 100755
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,44 @@ | ||
module ZAWS | ||
class External | ||
class AWSCLI | ||
class Generators | ||
class API | ||
class AWS | ||
class AWS | ||
def initialize | ||
@subcommand=nil | ||
@output=nil | ||
@region=nil | ||
self | ||
end | ||
|
||
def with_output(output) | ||
@output=output | ||
self | ||
end | ||
|
||
def with_region(region) | ||
@region=region | ||
self | ||
end | ||
|
||
def with_subcommand(subcommand) | ||
@subcommand=subcommand | ||
self | ||
end | ||
|
||
def get_command | ||
command = "aws " | ||
command = "#{command}--output #{@output} " if @output | ||
command = "#{command}--region #{@region} " if @region | ||
command = "#{command}#{@subcommand.get_command}" if @subcommand | ||
return command.strip | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end | ||
|
38 changes: 38 additions & 0 deletions
38
lib/zaws/external/awscli/generators/api/ec2/create_tags.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
module ZAWS | ||
class External | ||
class AWSCLI | ||
class Generators | ||
class API | ||
class EC2 | ||
class CreateTags | ||
def initialize | ||
@resource | ||
@tags | ||
self | ||
end | ||
|
||
def resource(resource) | ||
@resource=resource | ||
self | ||
end | ||
|
||
def tags(tags) | ||
@tags=tags.get_tags_array | ||
self | ||
end | ||
|
||
def get_command | ||
command = "ec2 create-tags" | ||
command = "#{command} --resources #{@resource}" if @resource | ||
command = "#{command} --tags \"Key=#{@tags[0]['Key']},Value=#{@tags[0]['Value']}\" " if @tags | ||
return command | ||
end | ||
|
||
end | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end | ||
|
31 changes: 31 additions & 0 deletions
31
lib/zaws/external/awscli/generators/api/ec2/describe_instances.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
module ZAWS | ||
class External | ||
class AWSCLI | ||
class Generators | ||
class API | ||
class EC2 | ||
class DescribeInstances | ||
def initialize | ||
@filter=nil | ||
self | ||
end | ||
|
||
def filter(filter) | ||
@filter=filter | ||
self | ||
end | ||
|
||
def get_command | ||
command = "ec2 describe-instances" | ||
command = "#{command} #{@filter.get_command}" if @filter | ||
return command | ||
end | ||
|
||
end | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end | ||
|
31 changes: 31 additions & 0 deletions
31
lib/zaws/external/awscli/generators/api/ec2/describe_security_groups.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
module ZAWS | ||
class External | ||
class AWSCLI | ||
class Generators | ||
class API | ||
class EC2 | ||
class DescribeSecurityGroups | ||
def initialize | ||
@filter=nil | ||
self | ||
end | ||
|
||
def filter(filter) | ||
@filter=filter | ||
self | ||
end | ||
|
||
def get_command | ||
command = "ec2 describe-security-groups" | ||
command = "#{command} #{@filter.get_command}" if @filter | ||
return command | ||
end | ||
|
||
end | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end | ||
|
Oops, something went wrong.