maintainer       "RightScale, Inc."
maintainer_email "support@rightscale.com"
license          "Copyright RightScale, Inc. All rights reserved."
description      "IIS recipes"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc'))
version          "0.0.6"

depends 'aws'
depends 'code_checkout'

recipe "app_iis::default", "Calls app_iis::update_code_svn"
recipe "app_iis::update_code_svn", "Retrieves code from SVN then sets up website."
recipe "app_iis::update_code_s3", "Retrieves code from s3 then sets up website."
recipe "app_iis::start_default_website", "Starts the website named 'Default Web Site' if it is not already running"

attribute "svn/repo_path",
  :display_name => "SVN Repo Path",
  :description => "The URL of your SVN repository where your application code will be checked out from.  Ex: http://mysvn.net/app/",
  :recipes => ["app_iis::update_code_svn"],
  :required => "required"

attribute "svn/username",
  :display_name => "SVN Username",
  :description => "The SVN username that is used to checkout the application code from SVN repository",
  :recipes => ["app_iis::update_code_svn"],
  :required => "optional",
  :default => ""

attribute "svn/password",
  :display_name => "SVN Password",
  :description => "The SVN password that is used to checkout the application code from SVN repository.",
  :recipes => ["app_iis::update_code_svn"],
  :required => "optional",
  :default => ""

attribute "svn/force_checkout",
  :display_name => "SVN Force Checkout",
  :description => "A value of 'false' will attempt an svn update where 'true' will do a full checkout",
  :recipes => ["app_iis::update_code_svn"],
  :choice => ['true', 'false'],
  :required => "required"


attribute "aws/access_key_id",
  :display_name => "Access Key Id",
  :description => "This is an Amazon credential. Log in to your AWS account at aws.amazon.com to retrieve you access identifiers. Ex: 1JHQQ4KVEVM02KVEVM02",
  :recipes => ["app_iis::update_code_s3"],
  :required => "required"

attribute "aws/secret_access_key",
  :display_name => "Secret Access Key",
  :description => "This is an Amazon credential. Log in to your AWS account at aws.amazon.com to retrieve your access identifiers. Ex: XVdxPgOM4auGcMlPz61IZGotpr9LzzI07tT8s2Ws",
  :recipes => ["app_iis::update_code_s3"],
  :required => "required"

attribute "s3/application_code_package",
  :display_name => "Application Package",
  :description => "The name of the application package that can be retrieved from the S3 bucket. Ex: productioncode.zip",
  :recipes => ["app_iis::update_code_s3"],
  :required => "required"

attribute "s3/application_code_bucket",
  :display_name => "Application Bucket",
  :description => "The S3 bucket, where the application can be retrieved. Ex: production-code-bucket",
  :recipes => ["app_iis::update_code_s3"],
  :required => "required"
